| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 int offset = num_parameters * kPointerSize; | 310 int offset = num_parameters * kPointerSize; |
| 311 __ lea(edx, | 311 __ lea(edx, |
| 312 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); | 312 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); |
| 313 __ push(edx); | 313 __ push(edx); |
| 314 __ push(Immediate(Smi::FromInt(num_parameters))); | 314 __ push(Immediate(Smi::FromInt(num_parameters))); |
| 315 // Arguments to ArgumentsAccessStub: | 315 // Arguments to ArgumentsAccessStub: |
| 316 // function, receiver address, parameter count. | 316 // function, receiver address, parameter count. |
| 317 // The stub will rewrite receiver and parameter count if the previous | 317 // The stub will rewrite receiver and parameter count if the previous |
| 318 // stack frame was an arguments adapter frame. | 318 // stack frame was an arguments adapter frame. |
| 319 ArgumentsAccessStub::Type type; | 319 ArgumentsAccessStub::Type type; |
| 320 if (is_strict(language_mode()) || !is_simple_parameter_list()) { | 320 if (is_strict(language_mode()) || !has_simple_parameters()) { |
| 321 type = ArgumentsAccessStub::NEW_STRICT; | 321 type = ArgumentsAccessStub::NEW_STRICT; |
| 322 } else if (function()->has_duplicate_parameters()) { | 322 } else if (function()->has_duplicate_parameters()) { |
| 323 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 323 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
| 324 } else { | 324 } else { |
| 325 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 325 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
| 326 } | 326 } |
| 327 | 327 |
| 328 ArgumentsAccessStub stub(isolate(), type); | 328 ArgumentsAccessStub stub(isolate(), type); |
| 329 __ CallStub(&stub); | 329 __ CallStub(&stub); |
| 330 | 330 |
| (...skipping 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5332 Assembler::target_address_at(call_target_address, | 5332 Assembler::target_address_at(call_target_address, |
| 5333 unoptimized_code)); | 5333 unoptimized_code)); |
| 5334 return OSR_AFTER_STACK_CHECK; | 5334 return OSR_AFTER_STACK_CHECK; |
| 5335 } | 5335 } |
| 5336 | 5336 |
| 5337 | 5337 |
| 5338 } // namespace internal | 5338 } // namespace internal |
| 5339 } // namespace v8 | 5339 } // namespace v8 |
| 5340 | 5340 |
| 5341 #endif // V8_TARGET_ARCH_X87 | 5341 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |