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

Side by Side Diff: src/code-factory.cc

Issue 2051113002: [stubs] ToNumberStub --> ToNumber builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix full-code on non-x64 platforms Created 4 years, 6 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/builtins.h ('k') | src/code-stubs.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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // static 129 // static
130 Callable CodeFactory::ToBoolean(Isolate* isolate) { 130 Callable CodeFactory::ToBoolean(Isolate* isolate) {
131 ToBooleanStub stub(isolate); 131 ToBooleanStub stub(isolate);
132 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 132 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
133 } 133 }
134 134
135 135
136 // static 136 // static
137 Callable CodeFactory::ToNumber(Isolate* isolate) { 137 Callable CodeFactory::ToNumber(Isolate* isolate) {
138 ToNumberStub stub(isolate); 138 return Callable(isolate->builtins()->ToNumber(),
139 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 139 TypeConversionDescriptor(isolate));
140 } 140 }
141 141
142 142
143 // static 143 // static
144 Callable CodeFactory::NonNumberToNumber(Isolate* isolate) { 144 Callable CodeFactory::NonNumberToNumber(Isolate* isolate) {
145 NonNumberToNumberStub stub(isolate); 145 return Callable(isolate->builtins()->NonNumberToNumber(),
146 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 146 TypeConversionDescriptor(isolate));
147 } 147 }
148 148
149 // static 149 // static
150 Callable CodeFactory::StringToNumber(Isolate* isolate) { 150 Callable CodeFactory::StringToNumber(Isolate* isolate) {
151 return Callable(isolate->builtins()->StringToNumber(), 151 return Callable(isolate->builtins()->StringToNumber(),
152 TypeConversionDescriptor(isolate)); 152 TypeConversionDescriptor(isolate));
153 } 153 }
154 154
155 // static 155 // static
156 Callable CodeFactory::ToString(Isolate* isolate) { 156 Callable CodeFactory::ToString(Isolate* isolate) {
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // static 562 // static
563 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 563 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
564 // Note: If we ever use fpregs in the interpreter then we will need to 564 // Note: If we ever use fpregs in the interpreter then we will need to
565 // save fpregs too. 565 // save fpregs too.
566 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 566 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
567 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 567 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
568 } 568 }
569 569
570 } // namespace internal 570 } // namespace internal
571 } // namespace v8 571 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698