OLD | NEW |
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 NonNumberToNumberStub stub(isolate); |
146 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 146 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
147 } | 147 } |
148 | 148 |
149 // static | 149 // static |
150 Callable CodeFactory::StringToNumber(Isolate* isolate) { | 150 Callable CodeFactory::StringToNumber(Isolate* isolate) { |
151 StringToNumberStub stub(isolate); | 151 return Callable(isolate->builtins()->StringToNumber(), |
152 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 152 TypeConversionDescriptor(isolate)); |
153 } | 153 } |
154 | 154 |
155 // static | 155 // static |
156 Callable CodeFactory::ToString(Isolate* isolate) { | 156 Callable CodeFactory::ToString(Isolate* isolate) { |
157 ToStringStub stub(isolate); | 157 ToStringStub stub(isolate); |
158 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 158 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
159 } | 159 } |
160 | 160 |
161 | 161 |
162 // static | 162 // static |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |