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

Side by Side Diff: src/bootstrapper.cc

Issue 2724833002: Migrate Object.prototype.valueOf to CSA (Closed)
Patch Set: Separate CL & fixes Created 3 years, 9 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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 native_context()->set_object_is_sealed(*object_is_sealed); 1259 native_context()->set_object_is_sealed(*object_is_sealed);
1260 1260
1261 Handle<JSFunction> object_keys = SimpleInstallFunction( 1261 Handle<JSFunction> object_keys = SimpleInstallFunction(
1262 object_function, "keys", Builtins::kObjectKeys, 1, false); 1262 object_function, "keys", Builtins::kObjectKeys, 1, false);
1263 native_context()->set_object_keys(*object_keys); 1263 native_context()->set_object_keys(*object_keys);
1264 SimpleInstallFunction(object_function, factory->entries_string(), 1264 SimpleInstallFunction(object_function, factory->entries_string(),
1265 Builtins::kObjectEntries, 1, false); 1265 Builtins::kObjectEntries, 1, false);
1266 SimpleInstallFunction(object_function, factory->values_string(), 1266 SimpleInstallFunction(object_function, factory->values_string(),
1267 Builtins::kObjectValues, 1, false); 1267 Builtins::kObjectValues, 1, false);
1268 1268
1269 Handle<JSFunction> object_value_of = SimpleInstallFunction(
Benedikt Meurer 2017/03/03 05:22:46 Just move this down until after "propertyIsEnumera
1270 isolate->initial_object_prototype(), "valueOf",
1271 Builtins::kObjectPrototypeValueOf, 0, true);
1272 native_context()->set_object_value_of(*object_value_of);
1269 SimpleInstallFunction(isolate->initial_object_prototype(), 1273 SimpleInstallFunction(isolate->initial_object_prototype(),
1270 "__defineGetter__", Builtins::kObjectDefineGetter, 2, 1274 "__defineGetter__", Builtins::kObjectDefineGetter, 2,
1271 true); 1275 true);
1272 SimpleInstallFunction(isolate->initial_object_prototype(), 1276 SimpleInstallFunction(isolate->initial_object_prototype(),
1273 "__defineSetter__", Builtins::kObjectDefineSetter, 2, 1277 "__defineSetter__", Builtins::kObjectDefineSetter, 2,
1274 true); 1278 true);
1275 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", 1279 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty",
1276 Builtins::kObjectHasOwnProperty, 1, true); 1280 Builtins::kObjectHasOwnProperty, 1, true);
1277 SimpleInstallFunction(isolate->initial_object_prototype(), 1281 SimpleInstallFunction(isolate->initial_object_prototype(),
1278 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, 1282 "__lookupGetter__", Builtins::kObjectLookupGetter, 1,
(...skipping 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 } 5026 }
5023 5027
5024 5028
5025 // Called when the top-level V8 mutex is destroyed. 5029 // Called when the top-level V8 mutex is destroyed.
5026 void Bootstrapper::FreeThreadResources() { 5030 void Bootstrapper::FreeThreadResources() {
5027 DCHECK(!IsActive()); 5031 DCHECK(!IsActive());
5028 } 5032 }
5029 5033
5030 } // namespace internal 5034 } // namespace internal
5031 } // namespace v8 5035 } // 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