| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 255 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 256 --num_parameters; | 256 --num_parameters; |
| 257 ++rest_index; | 257 ++rest_index; |
| 258 } | 258 } |
| 259 | 259 |
| 260 __ leap(rdx, | 260 __ leap(rdx, |
| 261 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); | 261 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); |
| 262 __ Push(rdx); | 262 __ Push(rdx); |
| 263 __ Push(Smi::FromInt(num_parameters)); | 263 __ Push(Smi::FromInt(num_parameters)); |
| 264 __ Push(Smi::FromInt(rest_index)); | 264 __ Push(Smi::FromInt(rest_index)); |
| 265 __ Push(Smi::FromInt(language_mode())); |
| 265 | 266 |
| 266 RestParamAccessStub stub(isolate()); | 267 RestParamAccessStub stub(isolate()); |
| 267 __ CallStub(&stub); | 268 __ CallStub(&stub); |
| 268 | 269 |
| 269 SetVar(rest_param, rax, rbx, rdx); | 270 SetVar(rest_param, rax, rbx, rdx); |
| 270 } | 271 } |
| 271 | 272 |
| 272 // Possibly allocate an arguments object. | 273 // Possibly allocate an arguments object. |
| 273 Variable* arguments = scope()->arguments(); | 274 Variable* arguments = scope()->arguments(); |
| 274 if (arguments != NULL) { | 275 if (arguments != NULL) { |
| (...skipping 5177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5452 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5453 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 5453 Assembler::target_address_at(call_target_address, | 5454 Assembler::target_address_at(call_target_address, |
| 5454 unoptimized_code)); | 5455 unoptimized_code)); |
| 5455 return OSR_AFTER_STACK_CHECK; | 5456 return OSR_AFTER_STACK_CHECK; |
| 5456 } | 5457 } |
| 5457 | 5458 |
| 5458 | 5459 |
| 5459 } } // namespace v8::internal | 5460 } } // namespace v8::internal |
| 5460 | 5461 |
| 5461 #endif // V8_TARGET_ARCH_X64 | 5462 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |