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::FastNewStrictArguments(Isolate* isolate) { |
| 291 FastNewStrictArgumentsStub stub(isolate); |
| 292 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 293 } |
| 294 |
| 295 |
| 296 // static |
290 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, | 297 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, |
291 bool is_unmapped_arguments, | |
292 bool has_duplicate_parameters) { | 298 bool has_duplicate_parameters) { |
293 ArgumentsAccessStub::Type type = ArgumentsAccessStub::ComputeType( | 299 ArgumentsAccessStub::Type type = |
294 is_unmapped_arguments, has_duplicate_parameters); | 300 ArgumentsAccessStub::ComputeType(has_duplicate_parameters); |
295 ArgumentsAccessStub stub(isolate, type); | 301 ArgumentsAccessStub stub(isolate, type); |
296 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 302 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
297 } | 303 } |
298 | 304 |
299 | 305 |
300 // static | 306 // static |
301 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 307 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
302 AllocateHeapNumberStub stub(isolate); | 308 AllocateHeapNumberStub stub(isolate); |
303 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 309 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
304 } | 310 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 // static | 376 // static |
371 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 377 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
372 // 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 |
373 // save fpregs too. | 379 // save fpregs too. |
374 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 380 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
375 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 381 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
376 } | 382 } |
377 | 383 |
378 } // namespace internal | 384 } // namespace internal |
379 } // namespace v8 | 385 } // namespace v8 |
OLD | NEW |