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

Side by Side Diff: src/bootstrapper.cc

Issue 2853393002: [builtins] Migrate Object.keys to CodeStubAssembler builtin. (Closed)
Patch Set: Really fix the test, meh. Created 3 years, 7 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-definitions.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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1304
1305 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( 1305 Handle<JSFunction> object_is_frozen = SimpleInstallFunction(
1306 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); 1306 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false);
1307 native_context()->set_object_is_frozen(*object_is_frozen); 1307 native_context()->set_object_is_frozen(*object_is_frozen);
1308 1308
1309 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( 1309 Handle<JSFunction> object_is_sealed = SimpleInstallFunction(
1310 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); 1310 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false);
1311 native_context()->set_object_is_sealed(*object_is_sealed); 1311 native_context()->set_object_is_sealed(*object_is_sealed);
1312 1312
1313 Handle<JSFunction> object_keys = SimpleInstallFunction( 1313 Handle<JSFunction> object_keys = SimpleInstallFunction(
1314 object_function, "keys", Builtins::kObjectKeys, 1, false); 1314 object_function, "keys", Builtins::kObjectKeys, 1, true);
1315 native_context()->set_object_keys(*object_keys); 1315 native_context()->set_object_keys(*object_keys);
1316 SimpleInstallFunction(object_function, factory->entries_string(), 1316 SimpleInstallFunction(object_function, factory->entries_string(),
1317 Builtins::kObjectEntries, 1, false); 1317 Builtins::kObjectEntries, 1, false);
1318 SimpleInstallFunction(object_function, factory->values_string(), 1318 SimpleInstallFunction(object_function, factory->values_string(),
1319 Builtins::kObjectValues, 1, false); 1319 Builtins::kObjectValues, 1, false);
1320 1320
1321 SimpleInstallFunction(isolate->initial_object_prototype(), 1321 SimpleInstallFunction(isolate->initial_object_prototype(),
1322 "__defineGetter__", Builtins::kObjectDefineGetter, 2, 1322 "__defineGetter__", Builtins::kObjectDefineGetter, 2,
1323 true); 1323 true);
1324 SimpleInstallFunction(isolate->initial_object_prototype(), 1324 SimpleInstallFunction(isolate->initial_object_prototype(),
(...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 } 5283 }
5284 5284
5285 5285
5286 // Called when the top-level V8 mutex is destroyed. 5286 // Called when the top-level V8 mutex is destroyed.
5287 void Bootstrapper::FreeThreadResources() { 5287 void Bootstrapper::FreeThreadResources() {
5288 DCHECK(!IsActive()); 5288 DCHECK(!IsActive());
5289 } 5289 }
5290 5290
5291 } // namespace internal 5291 } // namespace internal
5292 } // namespace v8 5292 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698