| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 259 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 260 --num_parameters; | 260 --num_parameters; |
| 261 ++rest_index; | 261 ++rest_index; |
| 262 } | 262 } |
| 263 | 263 |
| 264 __ lea(edx, | 264 __ lea(edx, |
| 265 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); | 265 Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset)); |
| 266 __ push(edx); | 266 __ push(edx); |
| 267 __ push(Immediate(Smi::FromInt(num_parameters))); | 267 __ push(Immediate(Smi::FromInt(num_parameters))); |
| 268 __ push(Immediate(Smi::FromInt(rest_index))); | 268 __ push(Immediate(Smi::FromInt(rest_index))); |
| 269 __ push(Immediate(Smi::FromInt(language_mode()))); |
| 269 | 270 |
| 270 RestParamAccessStub stub(isolate()); | 271 RestParamAccessStub stub(isolate()); |
| 271 __ CallStub(&stub); | 272 __ CallStub(&stub); |
| 272 | 273 |
| 273 SetVar(rest_param, eax, ebx, edx); | 274 SetVar(rest_param, eax, ebx, edx); |
| 274 } | 275 } |
| 275 | 276 |
| 276 Variable* arguments = scope()->arguments(); | 277 Variable* arguments = scope()->arguments(); |
| 277 if (arguments != NULL) { | 278 if (arguments != NULL) { |
| 278 // Function uses arguments object. | 279 // Function uses arguments object. |
| (...skipping 5157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5436 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5437 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5437 Assembler::target_address_at(call_target_address, | 5438 Assembler::target_address_at(call_target_address, |
| 5438 unoptimized_code)); | 5439 unoptimized_code)); |
| 5439 return OSR_AFTER_STACK_CHECK; | 5440 return OSR_AFTER_STACK_CHECK; |
| 5440 } | 5441 } |
| 5441 | 5442 |
| 5442 | 5443 |
| 5443 } } // namespace v8::internal | 5444 } } // namespace v8::internal |
| 5444 | 5445 |
| 5445 #endif // V8_TARGET_ARCH_IA32 | 5446 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |