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

Unified Diff: src/bootstrapper.cc

Issue 2415173003: Revert of [builtins] Also port the Object.prototype.__proto__ accessors to C++. (Closed)
Patch Set: Created 4 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/builtins/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 384284e6ce93c1ac55cecd2d0016ce63d6cd81d3..032e08b408e3b6f31163b961cb610011ce8714c6 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -459,14 +459,14 @@
Name::ToFunctionName(name, isolate->factory()->get_string())
.ToHandleChecked();
Handle<JSFunction> getter =
- SimpleCreateFunction(isolate, getter_name, call_getter, 0, true);
+ SimpleCreateFunction(isolate, getter_name, call_getter, 0, false);
getter->shared()->set_native(true);
Handle<String> setter_name =
Name::ToFunctionName(name, isolate->factory()->set_string())
.ToHandleChecked();
Handle<JSFunction> setter =
- SimpleCreateFunction(isolate, setter_name, call_setter, 1, true);
+ SimpleCreateFunction(isolate, setter_name, call_setter, 0, false);
setter->shared()->set_native(true);
JSObject::DefineAccessor(base, name, getter, setter, attribs).Check();
@@ -1198,11 +1198,6 @@
SimpleInstallFunction(
isolate->initial_object_prototype(), "propertyIsEnumerable",
Builtins::kObjectPrototypePropertyIsEnumerable, 1, false);
-
- SimpleInstallGetterSetter(isolate->initial_object_prototype(),
- factory->proto_string(),
- Builtins::kObjectPrototypeGetProto,
- Builtins::kObjectPrototypeSetProto, DONT_ENUM);
}
Handle<JSObject> global(native_context()->global_object());
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698