| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 | 163 |
| 164 // static | 164 // static |
| 165 Callable CodeFactory::ToString(Isolate* isolate) { | 165 Callable CodeFactory::ToString(Isolate* isolate) { |
| 166 ToStringStub stub(isolate); | 166 ToStringStub stub(isolate); |
| 167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 | 170 |
| 171 // static | 171 // static |
| 172 Callable CodeFactory::ToName(Isolate* isolate) { |
| 173 ToNameStub stub(isolate); |
| 174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 175 } |
| 176 |
| 177 |
| 178 // static |
| 172 Callable CodeFactory::ToLength(Isolate* isolate) { | 179 Callable CodeFactory::ToLength(Isolate* isolate) { |
| 173 ToLengthStub stub(isolate); | 180 ToLengthStub stub(isolate); |
| 174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 175 } | 182 } |
| 176 | 183 |
| 177 | 184 |
| 178 // static | 185 // static |
| 179 Callable CodeFactory::ToObject(Isolate* isolate) { | 186 Callable CodeFactory::ToObject(Isolate* isolate) { |
| 180 ToObjectStub stub(isolate); | 187 ToObjectStub stub(isolate); |
| 181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 188 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // static | 368 // static |
| 362 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 369 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
| 363 // Note: If we ever use fpregs in the interpreter then we will need to | 370 // Note: If we ever use fpregs in the interpreter then we will need to |
| 364 // save fpregs too. | 371 // save fpregs too. |
| 365 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 372 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
| 366 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 373 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 367 } | 374 } |
| 368 | 375 |
| 369 } // namespace internal | 376 } // namespace internal |
| 370 } // namespace v8 | 377 } // namespace v8 |
| OLD | NEW |