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

Unified Diff: src/bootstrapper.cc

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/debug/mirrors.js » ('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 c4621c5749ce872e4b08bc6d1f76a3a40a79650d..ae2467526352512d96004d47f2caf0222865113d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2041,14 +2041,6 @@ bool Genesis::InstallNatives(ContextType context_type) {
builtins->set_native_context(*native_context());
builtins->set_global_proxy(native_context()->global_proxy());
-
- // Set up the 'builtin' property, which refers to the js builtins object.
- static const PropertyAttributes attributes =
- static_cast<PropertyAttributes>(READ_ONLY | DONT_DELETE);
- Handle<String> builtins_string =
- factory()->InternalizeOneByteString(STATIC_CHAR_VECTOR("builtins"));
- JSObject::AddProperty(builtins, builtins_string, builtins, attributes);
-
// Set up the reference from the global object to the builtins object.
JSGlobalObject::cast(native_context()->global_object())->
set_builtins(*builtins);
« no previous file with comments | « no previous file | src/debug/mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698