| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 | 191 |
| 192 // static | 192 // static |
| 193 Callable CodeFactory::ToObject(Isolate* isolate) { | 193 Callable CodeFactory::ToObject(Isolate* isolate) { |
| 194 ToObjectStub stub(isolate); | 194 ToObjectStub stub(isolate); |
| 195 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 195 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 196 } | 196 } |
| 197 | 197 |
| 198 | 198 |
| 199 // static | 199 // static |
| 200 Callable CodeFactory::NumberToString(Isolate* isolate) { |
| 201 NumberToStringStub stub(isolate); |
| 202 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 203 } |
| 204 |
| 205 |
| 206 // static |
| 207 Callable CodeFactory::RegExpConstructResult(Isolate* isolate) { |
| 208 RegExpConstructResultStub stub(isolate); |
| 209 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 210 } |
| 211 |
| 212 |
| 213 // static |
| 200 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 214 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
| 201 PretenureFlag pretenure_flag) { | 215 PretenureFlag pretenure_flag) { |
| 202 StringAddStub stub(isolate, flags, pretenure_flag); | 216 StringAddStub stub(isolate, flags, pretenure_flag); |
| 203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 217 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 204 } | 218 } |
| 205 | 219 |
| 206 | 220 |
| 207 // static | 221 // static |
| 208 Callable CodeFactory::StringCompare(Isolate* isolate) { | 222 Callable CodeFactory::StringCompare(Isolate* isolate) { |
| 209 StringCompareStub stub(isolate); | 223 StringCompareStub stub(isolate); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { | 314 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { |
| 301 // TODO(rmcilroy): Deal with runtime functions that return two values. | 315 // TODO(rmcilroy): Deal with runtime functions that return two values. |
| 302 // Note: If we ever use fpregs in the interpreter then we will need to | 316 // Note: If we ever use fpregs in the interpreter then we will need to |
| 303 // save fpregs too. | 317 // save fpregs too. |
| 304 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); | 318 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); |
| 305 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 319 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 306 } | 320 } |
| 307 | 321 |
| 308 } // namespace internal | 322 } // namespace internal |
| 309 } // namespace v8 | 323 } // namespace v8 |
| OLD | NEW |