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

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: 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') | src/builtins.cc » ('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 17a593dadf8e45b239be44c48bac08161fa7bb0d..e46ad99a90a74ae6dc01e19325ca6d6740ac96f3 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1078,6 +1078,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') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698