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