| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 __ leap(rdx, | 312 __ leap(rdx, |
| 313 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); | 313 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); |
| 314 __ Push(rdx); | 314 __ Push(rdx); |
| 315 __ Push(Smi::FromInt(num_parameters)); | 315 __ Push(Smi::FromInt(num_parameters)); |
| 316 // Arguments to ArgumentsAccessStub: | 316 // Arguments to ArgumentsAccessStub: |
| 317 // function, receiver address, parameter count. | 317 // function, receiver address, parameter count. |
| 318 // The stub will rewrite receiver and parameter count if the previous | 318 // The stub will rewrite receiver and parameter count if the previous |
| 319 // stack frame was an arguments adapter frame. | 319 // stack frame was an arguments adapter frame. |
| 320 | 320 |
| 321 ArgumentsAccessStub::Type type; | 321 ArgumentsAccessStub::Type type; |
| 322 if (is_strict(language_mode()) || !is_simple_parameter_list()) { | 322 if (is_strict(language_mode()) || !has_simple_parameters()) { |
| 323 type = ArgumentsAccessStub::NEW_STRICT; | 323 type = ArgumentsAccessStub::NEW_STRICT; |
| 324 } else if (function()->has_duplicate_parameters()) { | 324 } else if (function()->has_duplicate_parameters()) { |
| 325 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 325 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
| 326 } else { | 326 } else { |
| 327 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 327 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
| 328 } | 328 } |
| 329 ArgumentsAccessStub stub(isolate(), type); | 329 ArgumentsAccessStub stub(isolate(), type); |
| 330 __ CallStub(&stub); | 330 __ CallStub(&stub); |
| 331 | 331 |
| 332 SetVar(arguments, rax, rbx, rdx); | 332 SetVar(arguments, rax, rbx, rdx); |
| (...skipping 5019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5352 Assembler::target_address_at(call_target_address, | 5352 Assembler::target_address_at(call_target_address, |
| 5353 unoptimized_code)); | 5353 unoptimized_code)); |
| 5354 return OSR_AFTER_STACK_CHECK; | 5354 return OSR_AFTER_STACK_CHECK; |
| 5355 } | 5355 } |
| 5356 | 5356 |
| 5357 | 5357 |
| 5358 } // namespace internal | 5358 } // namespace internal |
| 5359 } // namespace v8 | 5359 } // namespace v8 |
| 5360 | 5360 |
| 5361 #endif // V8_TARGET_ARCH_X64 | 5361 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |