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

Unified Diff: src/bootstrapper.cc

Issue 1517963002: Move Object.assign implementation to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased 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 8dbc936fd36a9d0e7b406a741aef52729639d26c..6a419f3db673d7f8e68243b7f695875ff4961901 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1079,6 +1079,9 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Handle<String> object_name = factory->Object_string();
JSObject::AddProperty(
global_object, object_name, isolate->object_function(), DONT_ENUM);
+ SimpleInstallFunction(isolate->object_function(),
+ isolate->factory()->InternalizeUtf8String("assign"),
+ Builtins::kObjectAssign, 2, false);
Handle<JSObject> global(native_context()->global_object());
« 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