Index: src/builtins/builtins-function.cc |
diff --git a/src/builtins/builtins-function.cc b/src/builtins/builtins-function.cc |
index 12a94a63eb67258675c04cbe1d017764a9b674ba..447d3b90f7959449afc87148dae30067b54574e1 100644 |
--- a/src/builtins/builtins-function.cc |
+++ b/src/builtins/builtins-function.cc |
@@ -5,6 +5,7 @@ |
#include "src/builtins/builtins.h" |
#include "src/builtins/builtins-utils.h" |
+#include "src/compiler.h" |
#include "src/string-builder.h" |
namespace v8 { |
@@ -102,11 +103,11 @@ MaybeHandle<Object> CreateDynamicFunction(Isolate* isolate, |
// come from here. |
Handle<JSFunction> function; |
{ |
- ASSIGN_RETURN_ON_EXCEPTION( |
- isolate, function, |
- Builtins::CompileString(handle(target->native_context(), isolate), |
- source, ONLY_SINGLE_FUNCTION_LITERAL), |
- Object); |
+ ASSIGN_RETURN_ON_EXCEPTION(isolate, function, |
+ Compiler::GetFunctionFromString( |
+ handle(target->native_context(), isolate), |
+ source, ONLY_SINGLE_FUNCTION_LITERAL), |
+ Object); |
Handle<Object> result; |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate, result, |