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

Unified Diff: src/bootstrapper.cc

Issue 1558433002: [runtime] Migrate Object.create to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Camillos comment. 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 27e683574f86eb0c581169724743b43b9eda80ab..258142b8e11f2ddd4c0a2d59571dff17ec5692b4 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1079,9 +1079,10 @@ 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"),
+ SimpleInstallFunction(isolate->object_function(), factory->assign_string(),
Builtins::kObjectAssign, 2, false);
+ SimpleInstallFunction(isolate->object_function(), factory->create_string(),
+ Builtins::kObjectCreate, 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