| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 280 |
| 281 | 281 |
| 282 // static | 282 // static |
| 283 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) { | 283 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) { |
| 284 FastNewRestParameterStub stub(isolate); | 284 FastNewRestParameterStub stub(isolate); |
| 285 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 285 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 286 } | 286 } |
| 287 | 287 |
| 288 | 288 |
| 289 // static | 289 // static |
| 290 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) { | |
| 291 FastNewSloppyArgumentsStub stub(isolate); | |
| 292 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | |
| 293 } | |
| 294 | |
| 295 | |
| 296 // static | |
| 297 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) { | 290 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) { |
| 298 FastNewStrictArgumentsStub stub(isolate); | 291 FastNewStrictArgumentsStub stub(isolate); |
| 299 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 292 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 300 } | 293 } |
| 301 | 294 |
| 295 |
| 296 // static |
| 297 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, |
| 298 bool has_duplicate_parameters) { |
| 299 ArgumentsAccessStub::Type type = |
| 300 ArgumentsAccessStub::ComputeType(has_duplicate_parameters); |
| 301 ArgumentsAccessStub stub(isolate, type); |
| 302 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 303 } |
| 304 |
| 302 | 305 |
| 303 // static | 306 // static |
| 304 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 307 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
| 305 AllocateHeapNumberStub stub(isolate); | 308 AllocateHeapNumberStub stub(isolate); |
| 306 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 309 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 307 } | 310 } |
| 308 | 311 |
| 309 | 312 |
| 310 // static | 313 // static |
| 311 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { | 314 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // static | 376 // static |
| 374 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 377 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
| 375 // Note: If we ever use fpregs in the interpreter then we will need to | 378 // Note: If we ever use fpregs in the interpreter then we will need to |
| 376 // save fpregs too. | 379 // save fpregs too. |
| 377 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 380 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
| 378 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 381 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 379 } | 382 } |
| 380 | 383 |
| 381 } // namespace internal | 384 } // namespace internal |
| 382 } // namespace v8 | 385 } // namespace v8 |
| OLD | NEW |