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