Index: src/builtins/builtins-global.cc |
diff --git a/src/builtins/builtins-global.cc b/src/builtins/builtins-global.cc |
index 427a67a33679b761036e7e7c2759a6ce2666b7b7..2d91371ced1b92537dceda426101778c73be2238 100644 |
--- a/src/builtins/builtins-global.cc |
+++ b/src/builtins/builtins-global.cc |
@@ -5,6 +5,7 @@ |
#include "src/builtins/builtins.h" |
#include "src/builtins/builtins-utils.h" |
+#include "src/compiler.h" |
#include "src/uri.h" |
namespace v8 { |
@@ -86,9 +87,9 @@ BUILTIN(GlobalEval) { |
if (!x->IsString()) return *x; |
Handle<JSFunction> function; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, function, |
- Builtins::CompileString(handle(target->native_context(), isolate), |
- Handle<String>::cast(x), NO_PARSE_RESTRICTION)); |
+ isolate, function, Compiler::GetFunctionFromString( |
+ handle(target->native_context(), isolate), |
+ Handle<String>::cast(x), NO_PARSE_RESTRICTION)); |
RETURN_RESULT_OR_FAILURE( |
isolate, |
Execution::Call(isolate, function, target_global_proxy, 0, nullptr)); |