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

Side by Side Diff: src/bootstrapper.cc

Issue 2421803002: [builtins] Migrate Object.setPrototypeOf 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 native_context()->set_object_define_property(*object_define_property); 1154 native_context()->set_object_define_property(*object_define_property);
1155 1155
1156 Handle<JSFunction> object_freeze = SimpleInstallFunction( 1156 Handle<JSFunction> object_freeze = SimpleInstallFunction(
1157 object_function, "freeze", Builtins::kObjectFreeze, 1, false); 1157 object_function, "freeze", Builtins::kObjectFreeze, 1, false);
1158 native_context()->set_object_freeze(*object_freeze); 1158 native_context()->set_object_freeze(*object_freeze);
1159 1159
1160 Handle<JSFunction> object_get_prototype_of = SimpleInstallFunction( 1160 Handle<JSFunction> object_get_prototype_of = SimpleInstallFunction(
1161 object_function, "getPrototypeOf", Builtins::kObjectGetPrototypeOf, 1161 object_function, "getPrototypeOf", Builtins::kObjectGetPrototypeOf,
1162 1, false); 1162 1, false);
1163 native_context()->set_object_get_prototype_of(*object_get_prototype_of); 1163 native_context()->set_object_get_prototype_of(*object_get_prototype_of);
1164 SimpleInstallFunction(object_function, "setPrototypeOf",
1165 Builtins::kObjectSetPrototypeOf, 2, false);
1164 1166
1165 Handle<JSFunction> object_is_extensible = SimpleInstallFunction( 1167 Handle<JSFunction> object_is_extensible = SimpleInstallFunction(
1166 object_function, "isExtensible", Builtins::kObjectIsExtensible, 1168 object_function, "isExtensible", Builtins::kObjectIsExtensible,
1167 1, false); 1169 1, false);
1168 native_context()->set_object_is_extensible(*object_is_extensible); 1170 native_context()->set_object_is_extensible(*object_is_extensible);
1169 1171
1170 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( 1172 Handle<JSFunction> object_is_frozen = SimpleInstallFunction(
1171 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); 1173 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false);
1172 native_context()->set_object_is_frozen(*object_is_frozen); 1174 native_context()->set_object_is_frozen(*object_is_frozen);
1173 1175
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
4453 } 4455 }
4454 4456
4455 4457
4456 // Called when the top-level V8 mutex is destroyed. 4458 // Called when the top-level V8 mutex is destroyed.
4457 void Bootstrapper::FreeThreadResources() { 4459 void Bootstrapper::FreeThreadResources() {
4458 DCHECK(!IsActive()); 4460 DCHECK(!IsActive());
4459 } 4461 }
4460 4462
4461 } // namespace internal 4463 } // namespace internal
4462 } // namespace v8 4464 } // namespace v8
OLDNEW
« 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