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

Side by Side Diff: src/bootstrapper.cc

Issue 1609173002: Revert of [runtime] Migrate Object.getOwnPropertyNames to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ObjectGetOwnPropertyDescriptor
Patch Set: Created 4 years, 11 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.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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 DONT_ENUM); 1093 DONT_ENUM);
1094 SimpleInstallFunction(object_function, factory->assign_string(), 1094 SimpleInstallFunction(object_function, factory->assign_string(),
1095 Builtins::kObjectAssign, 2, false); 1095 Builtins::kObjectAssign, 2, false);
1096 SimpleInstallFunction(object_function, factory->create_string(), 1096 SimpleInstallFunction(object_function, factory->create_string(),
1097 Builtins::kObjectCreate, 2, false); 1097 Builtins::kObjectCreate, 2, false);
1098 Handle<JSFunction> object_freeze = SimpleInstallFunction( 1098 Handle<JSFunction> object_freeze = SimpleInstallFunction(
1099 object_function, "freeze", Builtins::kObjectFreeze, 1, false); 1099 object_function, "freeze", Builtins::kObjectFreeze, 1, false);
1100 native_context()->set_object_freeze(*object_freeze); 1100 native_context()->set_object_freeze(*object_freeze);
1101 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", 1101 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor",
1102 Builtins::kObjectGetOwnPropertyDescriptor, 2, false); 1102 Builtins::kObjectGetOwnPropertyDescriptor, 2, false);
1103 SimpleInstallFunction(object_function, "getOwnPropertyNames",
1104 Builtins::kObjectGetOwnPropertyNames, 1, false);
1105 SimpleInstallFunction(object_function, "getOwnPropertySymbols", 1103 SimpleInstallFunction(object_function, "getOwnPropertySymbols",
1106 Builtins::kObjectGetOwnPropertySymbols, 1, false); 1104 Builtins::kObjectGetOwnPropertySymbols, 1, false);
1107 Handle<JSFunction> object_is_extensible = 1105 Handle<JSFunction> object_is_extensible =
1108 SimpleInstallFunction(object_function, "isExtensible", 1106 SimpleInstallFunction(object_function, "isExtensible",
1109 Builtins::kObjectIsExtensible, 1, false); 1107 Builtins::kObjectIsExtensible, 1, false);
1110 native_context()->set_object_is_extensible(*object_is_extensible); 1108 native_context()->set_object_is_extensible(*object_is_extensible);
1111 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( 1109 Handle<JSFunction> object_is_frozen = SimpleInstallFunction(
1112 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); 1110 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false);
1113 native_context()->set_object_is_frozen(*object_is_frozen); 1111 native_context()->set_object_is_frozen(*object_is_frozen);
1114 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( 1112 Handle<JSFunction> object_is_sealed = SimpleInstallFunction(
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after
3527 } 3525 }
3528 3526
3529 3527
3530 // Called when the top-level V8 mutex is destroyed. 3528 // Called when the top-level V8 mutex is destroyed.
3531 void Bootstrapper::FreeThreadResources() { 3529 void Bootstrapper::FreeThreadResources() {
3532 DCHECK(!IsActive()); 3530 DCHECK(!IsActive());
3533 } 3531 }
3534 3532
3535 } // namespace internal 3533 } // namespace internal
3536 } // namespace v8 3534 } // namespace v8
OLDNEW
« 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