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

Unified Diff: src/bootstrapper.cc

Issue 2724833002: Migrate Object.prototype.valueOf to CSA (Closed)
Patch Set: Delete NaN 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') | src/js/v8natives.js » ('J')
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..a8ff9d4ffd7318f5d8781b81d9dcb7b7112109fa 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1266,6 +1266,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
SimpleInstallFunction(object_function, factory->values_string(),
Builtins::kObjectValues, 1, false);
+ SimpleInstallFunction(isolate->initial_object_prototype(), "valueOf",
+ Builtins::kObjectPrototypeValueOf, 0, true);
Benedikt Meurer 2017/03/01 20:00:26 We still use the object_value_of field of the nati
rongjie 2017/03/02 01:16:44 Done.
SimpleInstallFunction(isolate->initial_object_prototype(),
"__defineGetter__", Builtins::kObjectDefineGetter, 2,
true);
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/js/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698