Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index c1aa18cea21a8b4f9740db1a87079aa0b50642f5..c7c8f3fc2551309efecb0c9fa93066aa27fdcf49 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -59,15 +59,10 @@ static Handle<JSFunction> Compile(const char* source) { |
Isolate* isolate = CcTest::i_isolate(); |
Handle<String> source_code = isolate->factory()->NewStringFromUtf8( |
CStrVector(source)).ToHandleChecked(); |
- Handle<SharedFunctionInfo> shared_function = |
- Compiler::CompileScript(source_code, |
- Handle<String>(), |
- 0, |
- 0, |
- false, |
- Handle<Context>(isolate->native_context()), |
- NULL, NULL, NO_CACHED_DATA, |
- NOT_NATIVES_CODE); |
+ Handle<SharedFunctionInfo> shared_function = Compiler::CompileScript( |
+ source_code, Handle<String>(), 0, 0, false, |
+ Handle<Context>(isolate->native_context()), NULL, NULL, |
+ v8::ScriptCompiler::kNoCompileOptions, NOT_NATIVES_CODE); |
return isolate->factory()->NewFunctionFromSharedFunctionInfo( |
shared_function, isolate->native_context()); |
} |