Lines Matching refs:resource
153 ASSERT(m_streamer->resource());
155 if (m_streamer->resource()->cachedMetadata(V8ScriptRunner::tagForCodeCache())) {
156 // The resource has a code cache, so it's unnecessary to stream and
169 // We don't have a buffer yet. Try to get it from the resource.
170 SharedBuffer* buffer = m_streamer->resource()->resourceBuffer();
233 // code path will resume after the resource has loaded, before the
270 void ScriptStreamer::notifyAppendData(ScriptResource* resource)
273 ASSERT(m_resource == resource);
282 if (resource->resourceBuffer()->size() < kSmallScriptThreshold) {
311 void ScriptStreamer::notifyFinished(Resource* resource)
314 ASSERT(m_resource == resource);
325 ScriptStreamer::ScriptStreamer(ScriptResource* resource, v8::ScriptCompiler::StreamedSource::Encoding encoding, PendingScript::Type scriptType)
326 : m_resource(resource)
379 ScriptResource* resource = script.resource();
380 ASSERT(!resource->isLoaded());
381 if (!resource->url().protocolIsInHTTPFamily())
383 if (resource->resourceToRevalidate()) {
393 WTF::TextEncoding textEncoding(resource->encoding());
420 RefPtr<ScriptStreamer> streamer = adoptRef(new ScriptStreamer(resource, encoding, scriptType));