Chromium Code Reviews| Index: test/cctest/test-compiler.cc |
| diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
| index a0836c342641370306dd0acce543ca4f23687b6d..fab009962b07f585e132eacd6ad31896060d5f7e 100644 |
| --- a/test/cctest/test-compiler.cc |
| +++ b/test/cctest/test-compiler.cc |
| @@ -104,16 +104,13 @@ static Handle<JSFunction> Compile(const char* source) { |
| Handle<String> source_code( |
| isolate->factory()->NewStringFromUtf8(CStrVector(source))); |
| Handle<SharedFunctionInfo> shared_function = |
| - Compiler::Compile(source_code, |
| - Handle<String>(), |
| - 0, |
| - 0, |
| - false, |
| - Handle<Context>(isolate->native_context()), |
| - NULL, |
| - NULL, |
| - Handle<String>::null(), |
| - NOT_NATIVES_CODE); |
| + Compiler::CompileScript(source_code, |
| + Handle<String>(), 0, 0, |
|
titzer
2013/12/09 14:49:28
formatting changes
Yang
2013/12/10 11:22:04
Done.
|
| + false, |
| + Handle<Context>(isolate->native_context()), |
| + NULL, NULL, |
| + Handle<String>::null(), |
| + NOT_NATIVES_CODE); |
| return isolate->factory()->NewFunctionFromSharedFunctionInfo( |
| shared_function, isolate->native_context()); |
| } |