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

Unified Diff: src/bootstrapper.cc

Issue 2724833002: Migrate Object.prototype.valueOf to CSA (Closed)
Patch Set: Separate CL & fixes Created 3 years, 10 months 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/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 c487961fe4a1ebf9bbaf80153ef979c403d3df33..68a4934bbb471aceede8092f04ea8e37e3fe20d0 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1266,6 +1266,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
SimpleInstallFunction(object_function, factory->values_string(),
Builtins::kObjectValues, 1, false);
+ Handle<JSFunction> object_value_of = SimpleInstallFunction(
Benedikt Meurer 2017/03/03 05:22:46 Just move this down until after "propertyIsEnumera
+ isolate->initial_object_prototype(), "valueOf",
+ Builtins::kObjectPrototypeValueOf, 0, true);
+ native_context()->set_object_value_of(*object_value_of);
SimpleInstallFunction(isolate->initial_object_prototype(),
"__defineGetter__", Builtins::kObjectDefineGetter, 2,
true);
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698