| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
| 10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 RelocInfo::CODE_TARGET); | 481 RelocInfo::CODE_TARGET); |
| 482 } else { | 482 } else { |
| 483 __ add(ip, i.InputRegister(0), | 483 __ add(ip, i.InputRegister(0), |
| 484 Operand(Code::kHeaderSize - kHeapObjectTag)); | 484 Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 485 __ Jump(ip); | 485 __ Jump(ip); |
| 486 } | 486 } |
| 487 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 487 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 488 frame_access_state()->ClearSPDelta(); | 488 frame_access_state()->ClearSPDelta(); |
| 489 break; | 489 break; |
| 490 } | 490 } |
| 491 case kArchTailCallAddress: { |
| 492 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
| 493 AssembleDeconstructActivationRecord(stack_param_delta); |
| 494 CHECK(!instr->InputAt(0)->IsImmediate()); |
| 495 __ Jump(i.InputRegister(0)); |
| 496 frame_access_state()->ClearSPDelta(); |
| 497 break; |
| 498 } |
| 491 case kArchCallJSFunction: { | 499 case kArchCallJSFunction: { |
| 492 EnsureSpaceForLazyDeopt(); | 500 EnsureSpaceForLazyDeopt(); |
| 493 Register func = i.InputRegister(0); | 501 Register func = i.InputRegister(0); |
| 494 if (FLAG_debug_code) { | 502 if (FLAG_debug_code) { |
| 495 // Check the function's context matches the context argument. | 503 // Check the function's context matches the context argument. |
| 496 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 504 __ ldr(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); |
| 497 __ cmp(cp, kScratchReg); | 505 __ cmp(cp, kScratchReg); |
| 498 __ Assert(eq, kWrongFunctionContext); | 506 __ Assert(eq, kWrongFunctionContext); |
| 499 } | 507 } |
| 500 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 508 __ ldr(ip, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1627 padding_size -= v8::internal::Assembler::kInstrSize; | 1635 padding_size -= v8::internal::Assembler::kInstrSize; |
| 1628 } | 1636 } |
| 1629 } | 1637 } |
| 1630 } | 1638 } |
| 1631 | 1639 |
| 1632 #undef __ | 1640 #undef __ |
| 1633 | 1641 |
| 1634 } // namespace compiler | 1642 } // namespace compiler |
| 1635 } // namespace internal | 1643 } // namespace internal |
| 1636 } // namespace v8 | 1644 } // namespace v8 |
| OLD | NEW |