Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: src/bootstrapper.cc

Issue 1540893004: [runtime] Migrate GlobalEval to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 56e9676c14dcb64d7af747a4cefc0e2db920db27..2c71e1395cecc344a3330c99726626f159d8ce98 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2456,6 +2456,14 @@ bool Genesis::InstallNatives(ContextType context_type) {
native_context()->set_string_function_prototype_map(
HeapObject::cast(string_function->initial_map()->prototype())->map());
+ // Install Global.eval.
+ {
+ Handle<JSFunction> eval = SimpleInstallFunction(
+ handle(native_context()->global_object()), factory()->eval_string(),
+ Builtins::kGlobalEval, 1, true);
+ native_context()->set_global_eval_fun(*eval);
+ }
+
// Install Date.prototype[@@toPrimitive].
{
Handle<String> key = factory()->Date_string();
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698