Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index b799a5a6ef1808b11d1b7f190b69a74be4cfa0f9..bdbf88f4f956376392e7097c6f6739a5da5de680 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -650,7 +650,7 @@ Handle<SharedFunctionInfo> Compiler::Compile(Handle<String> source, |
// in that case too. |
// Create a script object describing the script to be compiled. |
- Handle<Script> script = FACTORY->NewScript(source); |
+ Handle<Script> script = isolate->factory()->NewScript(source); |
if (natives == NATIVES_CODE) { |
script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
} |
@@ -1055,6 +1055,7 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, |
info.SetLanguageMode(literal->scope()->language_mode()); |
Isolate* isolate = info.isolate(); |
+ Factory* factory = isolate->factory(); |
LiveEditFunctionTracker live_edit_tracker(isolate, literal); |
// Determine if the function can be lazily compiled. This is necessary to |
// allow some of our builtin JS files to be lazily compiled. These |
@@ -1084,7 +1085,7 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, |
// Create a shared function info object. |
Handle<SharedFunctionInfo> result = |
- FACTORY->NewSharedFunctionInfo(literal->name(), |
+ factory->NewSharedFunctionInfo(literal->name(), |
literal->materialized_literal_count(), |
literal->is_generator(), |
info.code(), |