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

Side by Side Diff: src/bootstrapper.cc

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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 | « src/array-iterator.js ('k') | src/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/utils/random-number-generator.h" 9 #include "src/base/utils/random-number-generator.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 native_context()->set_##var(Type::cast(*var##_native)); 1717 native_context()->set_##var(Type::cast(*var##_native));
1718 1718
1719 1719
1720 void Genesis::InstallNativeFunctions() { 1720 void Genesis::InstallNativeFunctions() {
1721 HandleScope scope(isolate()); 1721 HandleScope scope(isolate());
1722 INSTALL_NATIVE(JSFunction, "$createDate", create_date_fun); 1722 INSTALL_NATIVE(JSFunction, "$createDate", create_date_fun);
1723 1723
1724 INSTALL_NATIVE(JSFunction, "$toNumber", to_number_fun); 1724 INSTALL_NATIVE(JSFunction, "$toNumber", to_number_fun);
1725 INSTALL_NATIVE(JSFunction, "$toString", to_string_fun); 1725 INSTALL_NATIVE(JSFunction, "$toString", to_string_fun);
1726 INSTALL_NATIVE(JSFunction, "$toDetailString", to_detail_string_fun); 1726 INSTALL_NATIVE(JSFunction, "$toDetailString", to_detail_string_fun);
1727 INSTALL_NATIVE(JSFunction, "$toObject", to_object_fun);
1728 INSTALL_NATIVE(JSFunction, "$toInteger", to_integer_fun); 1727 INSTALL_NATIVE(JSFunction, "$toInteger", to_integer_fun);
1729 INSTALL_NATIVE(JSFunction, "$toUint32", to_uint32_fun); 1728 INSTALL_NATIVE(JSFunction, "$toUint32", to_uint32_fun);
1730 INSTALL_NATIVE(JSFunction, "$toInt32", to_int32_fun); 1729 INSTALL_NATIVE(JSFunction, "$toInt32", to_int32_fun);
1731 INSTALL_NATIVE(JSFunction, "$toLength", to_length_fun); 1730 INSTALL_NATIVE(JSFunction, "$toLength", to_length_fun);
1732 1731
1733 INSTALL_NATIVE(JSFunction, "$globalEval", global_eval_fun); 1732 INSTALL_NATIVE(JSFunction, "$globalEval", global_eval_fun);
1734 INSTALL_NATIVE(JSFunction, "$getStackTraceLine", get_stack_trace_line_fun); 1733 INSTALL_NATIVE(JSFunction, "$getStackTraceLine", get_stack_trace_line_fun);
1735 INSTALL_NATIVE(JSFunction, "$toCompletePropertyDescriptor", 1734 INSTALL_NATIVE(JSFunction, "$toCompletePropertyDescriptor",
1736 to_complete_property_descriptor); 1735 to_complete_property_descriptor);
1737 1736
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
3305 } 3304 }
3306 3305
3307 3306
3308 // Called when the top-level V8 mutex is destroyed. 3307 // Called when the top-level V8 mutex is destroyed.
3309 void Bootstrapper::FreeThreadResources() { 3308 void Bootstrapper::FreeThreadResources() {
3310 DCHECK(!IsActive()); 3309 DCHECK(!IsActive());
3311 } 3310 }
3312 3311
3313 } // namespace internal 3312 } // namespace internal
3314 } // namespace v8 3313 } // namespace v8
OLDNEW
« no previous file with comments | « src/array-iterator.js ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698