Lines Matching refs:ScriptCompiler
426 ScriptCompiler::CachedData* CompileForCachedData(
428 ScriptCompiler::CompileOptions compile_options) {
443 ScriptCompiler::CachedData* result = NULL;
460 ScriptCompiler::Source script_source(source_copy, ScriptOrigin(name_copy));
461 if (!ScriptCompiler::CompileUnboundScript(temp_isolate, &script_source,
467 result = new ScriptCompiler::CachedData(
468 cache, length, ScriptCompiler::CachedData::BufferOwned);
481 ScriptCompiler::CompileOptions compile_options) {
484 if (compile_options == ScriptCompiler::kNoCompileOptions) {
485 ScriptCompiler::Source script_source(source, origin);
486 return ScriptCompiler::Compile(context, &script_source, compile_options);
489 ScriptCompiler::CachedData* data =
491 ScriptCompiler::Source cached_source(source, origin, data);
492 if (compile_options == ScriptCompiler::kProduceCodeCache) {
493 compile_options = ScriptCompiler::kConsumeCodeCache;
494 } else if (compile_options == ScriptCompiler::kProduceParserCache) {
495 compile_options = ScriptCompiler::kConsumeParserCache;
499 if (data == NULL) compile_options = ScriptCompiler::kNoCompileOptions;
501 ScriptCompiler::Compile(context, &cached_source, compile_options);
699 ScriptCompiler::Source source(source_text, origin);
701 if (!ScriptCompiler::CompileModule(isolate, &source).ToLocal(&module)) {
971 ScriptCompiler::Source script_source(
974 if (!ScriptCompiler::CompileUnboundScript(isolate, &script_source)
2477 options.compile_options = v8::ScriptCompiler::kProduceCodeCache;
2479 options.compile_options = v8::ScriptCompiler::kProduceParserCache;
2481 options.compile_options = v8::ScriptCompiler::kNoCompileOptions;