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

Side by Side Diff: src/bootstrapper.cc

Issue 2730573004: Revert of Migrate Object.prototype.valueOf to CSA (Closed)
Patch Set: 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(
1270 isolate->initial_object_prototype(), "valueOf",
1271 Builtins::kObjectPrototypeValueOf, 0, true);
1272 native_context()->set_object_value_of(*object_value_of);
1273 SimpleInstallFunction(isolate->initial_object_prototype(), 1269 SimpleInstallFunction(isolate->initial_object_prototype(),
1274 "__defineGetter__", Builtins::kObjectDefineGetter, 2, 1270 "__defineGetter__", Builtins::kObjectDefineGetter, 2,
1275 true); 1271 true);
1276 SimpleInstallFunction(isolate->initial_object_prototype(), 1272 SimpleInstallFunction(isolate->initial_object_prototype(),
1277 "__defineSetter__", Builtins::kObjectDefineSetter, 2, 1273 "__defineSetter__", Builtins::kObjectDefineSetter, 2,
1278 true); 1274 true);
1279 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", 1275 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty",
1280 Builtins::kObjectHasOwnProperty, 1, true); 1276 Builtins::kObjectHasOwnProperty, 1, true);
1281 SimpleInstallFunction(isolate->initial_object_prototype(), 1277 SimpleInstallFunction(isolate->initial_object_prototype(),
1282 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, 1278 "__lookupGetter__", Builtins::kObjectLookupGetter, 1,
(...skipping 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after
5026 } 5022 }
5027 5023
5028 5024
5029 // Called when the top-level V8 mutex is destroyed. 5025 // Called when the top-level V8 mutex is destroyed.
5030 void Bootstrapper::FreeThreadResources() { 5026 void Bootstrapper::FreeThreadResources() {
5031 DCHECK(!IsActive()); 5027 DCHECK(!IsActive());
5032 } 5028 }
5033 5029
5034 } // namespace internal 5030 } // namespace internal
5035 } // namespace v8 5031 } // 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