| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index e1676e5e6fd0c0d0366e657d04095f7a4f15d405..02955360e5fbe1ca1318be1667cb031d881e2fc4 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -371,14 +371,16 @@ static inline v8::Local<v8::Value> CompileRun(v8::Local<v8::String> source) {
|
| }
|
|
|
|
|
| -static inline v8::Local<v8::Value> PreCompileCompileRun(const char* source) {
|
| +static inline v8::Local<v8::Value> ParserCacheCompileRun(const char* source) {
|
| // Compile once just to get the preparse data, then compile the second time
|
| // using the data.
|
| v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| v8::ScriptCompiler::Source script_source(v8_str(source));
|
| v8::ScriptCompiler::Compile(isolate, &script_source,
|
| - v8::ScriptCompiler::kProduceDataToCache);
|
| - return v8::ScriptCompiler::Compile(isolate, &script_source)->Run();
|
| + v8::ScriptCompiler::kProduceParserCache);
|
| + return v8::ScriptCompiler::Compile(isolate, &script_source,
|
| + v8::ScriptCompiler::kConsumeParserCache)
|
| + ->Run();
|
| }
|
|
|
|
|
|
|