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

Unified Diff: src/bootstrapper.cc

Issue 1509533003: Rewrite Object.prototype.toString in C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, add back experimental flag 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 | « src/api.cc ('k') | 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 e54b004ab1271f301eaedac417393e4a1f3bb6c9..8dbc936fd36a9d0e7b406a741aef52729639d26c 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1852,6 +1852,15 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
native_context->set_reflect_construct(*construct);
}
+ {
+ Handle<JSFunction> to_string = InstallFunction(
+ container, "object_to_string", JS_OBJECT_TYPE, JSObject::kHeaderSize,
+ MaybeHandle<JSObject>(), Builtins::kObjectProtoToString);
+ to_string->shared()->DontAdaptArguments();
+ to_string->shared()->set_length(0);
+ native_context->set_object_to_string(*to_string);
+ }
+
Handle<JSObject> iterator_prototype;
{
« no previous file with comments | « src/api.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698