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

Side by Side Diff: src/bootstrapper.cc

Issue 1567963002: [builtins] Migrate Object.keys to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 Handle<JSFunction> object_is_extensible = 1098 Handle<JSFunction> object_is_extensible =
1099 SimpleInstallFunction(object_function, "isExtensible", 1099 SimpleInstallFunction(object_function, "isExtensible",
1100 Builtins::kObjectIsExtensible, 1, false); 1100 Builtins::kObjectIsExtensible, 1, false);
1101 native_context()->set_object_is_extensible(*object_is_extensible); 1101 native_context()->set_object_is_extensible(*object_is_extensible);
1102 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( 1102 Handle<JSFunction> object_is_frozen = SimpleInstallFunction(
1103 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); 1103 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false);
1104 native_context()->set_object_is_frozen(*object_is_frozen); 1104 native_context()->set_object_is_frozen(*object_is_frozen);
1105 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( 1105 Handle<JSFunction> object_is_sealed = SimpleInstallFunction(
1106 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); 1106 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false);
1107 native_context()->set_object_is_sealed(*object_is_sealed); 1107 native_context()->set_object_is_sealed(*object_is_sealed);
1108 Handle<JSFunction> object_keys = SimpleInstallFunction(
1109 object_function, "keys", Builtins::kObjectKeys, 1, false);
1110 native_context()->set_object_keys(*object_keys);
1108 SimpleInstallFunction(object_function, "preventExtensions", 1111 SimpleInstallFunction(object_function, "preventExtensions",
1109 Builtins::kObjectPreventExtensions, 1, false); 1112 Builtins::kObjectPreventExtensions, 1, false);
1110 SimpleInstallFunction(object_function, "seal", Builtins::kObjectSeal, 1, 1113 SimpleInstallFunction(object_function, "seal", Builtins::kObjectSeal, 1,
1111 false); 1114 false);
1112 } 1115 }
1113 1116
1114 Handle<JSObject> global(native_context()->global_object()); 1117 Handle<JSObject> global(native_context()->global_object());
1115 1118
1116 { // --- F u n c t i o n --- 1119 { // --- F u n c t i o n ---
1117 Handle<JSFunction> function_function = 1120 Handle<JSFunction> function_function =
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after
3432 } 3435 }
3433 3436
3434 3437
3435 // Called when the top-level V8 mutex is destroyed. 3438 // Called when the top-level V8 mutex is destroyed.
3436 void Bootstrapper::FreeThreadResources() { 3439 void Bootstrapper::FreeThreadResources() {
3437 DCHECK(!IsActive()); 3440 DCHECK(!IsActive());
3438 } 3441 }
3439 3442
3440 } // namespace internal 3443 } // namespace internal
3441 } // namespace v8 3444 } // 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