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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 250 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
251 --num_parameters; | 251 --num_parameters; |
252 ++rest_index; | 252 ++rest_index; |
253 } | 253 } |
254 | 254 |
255 __ leap(rdx, | 255 __ leap(rdx, |
256 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); | 256 Operand(rbp, StandardFrameConstants::kCallerSPOffset + offset)); |
257 __ Push(rdx); | 257 __ Push(rdx); |
258 __ Push(Smi::FromInt(num_parameters)); | 258 __ Push(Smi::FromInt(num_parameters)); |
259 __ Push(Smi::FromInt(rest_index)); | 259 __ Push(Smi::FromInt(rest_index)); |
| 260 __ Push(Smi::FromInt(language_mode())); |
260 | 261 |
261 RestParamAccessStub stub(isolate()); | 262 RestParamAccessStub stub(isolate()); |
262 __ CallStub(&stub); | 263 __ CallStub(&stub); |
263 | 264 |
264 SetVar(rest_param, rax, rbx, rdx); | 265 SetVar(rest_param, rax, rbx, rdx); |
265 } | 266 } |
266 | 267 |
267 // Possibly allocate an arguments object. | 268 // Possibly allocate an arguments object. |
268 Variable* arguments = scope()->arguments(); | 269 Variable* arguments = scope()->arguments(); |
269 if (arguments != NULL) { | 270 if (arguments != NULL) { |
(...skipping 5125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5395 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5396 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5396 Assembler::target_address_at(call_target_address, | 5397 Assembler::target_address_at(call_target_address, |
5397 unoptimized_code)); | 5398 unoptimized_code)); |
5398 return OSR_AFTER_STACK_CHECK; | 5399 return OSR_AFTER_STACK_CHECK; |
5399 } | 5400 } |
5400 | 5401 |
5401 | 5402 |
5402 } } // namespace v8::internal | 5403 } } // namespace v8::internal |
5403 | 5404 |
5404 #endif // V8_TARGET_ARCH_X64 | 5405 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |