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

Side by Side Diff: src/bootstrapper.cc

Issue 2385423005: [stubs] Implement fast TF Builtin for Object.create (Closed)
Patch Set: removing unused symbol 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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 1122
1123 { // --- O b j e c t --- 1123 { // --- O b j e c t ---
1124 Handle<String> object_name = factory->Object_string(); 1124 Handle<String> object_name = factory->Object_string();
1125 Handle<JSFunction> object_function = isolate->object_function(); 1125 Handle<JSFunction> object_function = isolate->object_function();
1126 JSObject::AddProperty(global_object, object_name, object_function, 1126 JSObject::AddProperty(global_object, object_name, object_function,
1127 DONT_ENUM); 1127 DONT_ENUM);
1128 1128
1129 SimpleInstallFunction(object_function, factory->assign_string(), 1129 SimpleInstallFunction(object_function, factory->assign_string(),
1130 Builtins::kObjectAssign, 2, false); 1130 Builtins::kObjectAssign, 2, false);
1131 SimpleInstallFunction(object_function, factory->create_string(), 1131 SimpleInstallFunction(object_function, factory->create_string(),
1132 Builtins::kObjectCreate, 2, false); 1132 Builtins::kObjectCreate, 2, true);
1133 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", 1133 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor",
1134 Builtins::kObjectGetOwnPropertyDescriptor, 2, false); 1134 Builtins::kObjectGetOwnPropertyDescriptor, 2, false);
1135 SimpleInstallFunction(object_function, "getOwnPropertyNames", 1135 SimpleInstallFunction(object_function, "getOwnPropertyNames",
1136 Builtins::kObjectGetOwnPropertyNames, 1, false); 1136 Builtins::kObjectGetOwnPropertyNames, 1, false);
1137 SimpleInstallFunction(object_function, "getOwnPropertySymbols", 1137 SimpleInstallFunction(object_function, "getOwnPropertySymbols",
1138 Builtins::kObjectGetOwnPropertySymbols, 1, false); 1138 Builtins::kObjectGetOwnPropertySymbols, 1, false);
1139 SimpleInstallFunction(object_function, "is", 1139 SimpleInstallFunction(object_function, "is",
1140 Builtins::kObjectIs, 2, true); 1140 Builtins::kObjectIs, 2, true);
1141 SimpleInstallFunction(object_function, "preventExtensions", 1141 SimpleInstallFunction(object_function, "preventExtensions",
1142 Builtins::kObjectPreventExtensions, 1, false); 1142 Builtins::kObjectPreventExtensions, 1, false);
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after
4571 } 4571 }
4572 4572
4573 4573
4574 // Called when the top-level V8 mutex is destroyed. 4574 // Called when the top-level V8 mutex is destroyed.
4575 void Bootstrapper::FreeThreadResources() { 4575 void Bootstrapper::FreeThreadResources() {
4576 DCHECK(!IsActive()); 4576 DCHECK(!IsActive());
4577 } 4577 }
4578 4578
4579 } // namespace internal 4579 } // namespace internal
4580 } // namespace v8 4580 } // 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