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

Side by Side Diff: src/bootstrapper.cc

Issue 2724833002: Migrate Object.prototype.valueOf to CSA (Closed)
Patch Set: Delete NaN 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') | src/js/v8natives.js » ('J')
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 SimpleInstallFunction(isolate->initial_object_prototype(), "valueOf",
1270 Builtins::kObjectPrototypeValueOf, 0, true);
Benedikt Meurer 2017/03/01 20:00:26 We still use the object_value_of field of the nati
rongjie 2017/03/02 01:16:44 Done.
1269 SimpleInstallFunction(isolate->initial_object_prototype(), 1271 SimpleInstallFunction(isolate->initial_object_prototype(),
1270 "__defineGetter__", Builtins::kObjectDefineGetter, 2, 1272 "__defineGetter__", Builtins::kObjectDefineGetter, 2,
1271 true); 1273 true);
1272 SimpleInstallFunction(isolate->initial_object_prototype(), 1274 SimpleInstallFunction(isolate->initial_object_prototype(),
1273 "__defineSetter__", Builtins::kObjectDefineSetter, 2, 1275 "__defineSetter__", Builtins::kObjectDefineSetter, 2,
1274 true); 1276 true);
1275 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", 1277 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty",
1276 Builtins::kObjectHasOwnProperty, 1, true); 1278 Builtins::kObjectHasOwnProperty, 1, true);
1277 SimpleInstallFunction(isolate->initial_object_prototype(), 1279 SimpleInstallFunction(isolate->initial_object_prototype(),
1278 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, 1280 "__lookupGetter__", Builtins::kObjectLookupGetter, 1,
(...skipping 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 } 5024 }
5023 5025
5024 5026
5025 // Called when the top-level V8 mutex is destroyed. 5027 // Called when the top-level V8 mutex is destroyed.
5026 void Bootstrapper::FreeThreadResources() { 5028 void Bootstrapper::FreeThreadResources() {
5027 DCHECK(!IsActive()); 5029 DCHECK(!IsActive());
5028 } 5030 }
5029 5031
5030 } // namespace internal 5032 } // namespace internal
5031 } // namespace v8 5033 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/js/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698