| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 254 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 255 --num_parameters; | 255 --num_parameters; |
| 256 ++rest_index; | 256 ++rest_index; |
| 257 } | 257 } |
| 258 | 258 |
| 259 __ lea(edx, | 259 __ lea(edx, |
| 260 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); | 260 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); |
| 261 __ push(edx); | 261 __ push(edx); |
| 262 __ push(Immediate(Smi::FromInt(num_parameters))); | 262 __ push(Immediate(Smi::FromInt(num_parameters))); |
| 263 __ push(Immediate(Smi::FromInt(rest_index))); | 263 __ push(Immediate(Smi::FromInt(rest_index))); |
| 264 __ push(Immediate(Smi::FromInt(language_mode()))); |
| 264 | 265 |
| 265 RestParamAccessStub stub(isolate()); | 266 RestParamAccessStub stub(isolate()); |
| 266 __ CallStub(&stub); | 267 __ CallStub(&stub); |
| 267 | 268 |
| 268 SetVar(rest_param, eax, ebx, edx); | 269 SetVar(rest_param, eax, ebx, edx); |
| 269 } | 270 } |
| 270 | 271 |
| 271 Variable* arguments = scope()->arguments(); | 272 Variable* arguments = scope()->arguments(); |
| 272 if (arguments != NULL) { | 273 if (arguments != NULL) { |
| 273 // Function uses arguments object. | 274 // Function uses arguments object. |
| (...skipping 5103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5377 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5378 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5378 Assembler::target_address_at(call_target_address, | 5379 Assembler::target_address_at(call_target_address, |
| 5379 unoptimized_code)); | 5380 unoptimized_code)); |
| 5380 return OSR_AFTER_STACK_CHECK; | 5381 return OSR_AFTER_STACK_CHECK; |
| 5381 } | 5382 } |
| 5382 | 5383 |
| 5383 | 5384 |
| 5384 } } // namespace v8::internal | 5385 } } // namespace v8::internal |
| 5385 | 5386 |
| 5386 #endif // V8_TARGET_ARCH_IA32 | 5387 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |