| 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 #include "src/compilation-info.h" | 6 #include "src/compilation-info.h" |
| 7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 case kArchTailCallCodeObject: { | 613 case kArchTailCallCodeObject: { |
| 614 if (arch_opcode == kArchTailCallCodeObjectFromJSFunction) { | 614 if (arch_opcode == kArchTailCallCodeObjectFromJSFunction) { |
| 615 AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister, | 615 AssemblePopArgumentsAdaptorFrame(kJavaScriptCallArgCountRegister, |
| 616 i.TempRegister(0), i.TempRegister(1), | 616 i.TempRegister(0), i.TempRegister(1), |
| 617 i.TempRegister(2)); | 617 i.TempRegister(2)); |
| 618 } | 618 } |
| 619 if (instr->InputAt(0)->IsImmediate()) { | 619 if (instr->InputAt(0)->IsImmediate()) { |
| 620 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), | 620 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), |
| 621 RelocInfo::CODE_TARGET); | 621 RelocInfo::CODE_TARGET); |
| 622 } else { | 622 } else { |
| 623 __ addiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); | 623 __ Jump(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); |
| 624 __ Jump(at); | |
| 625 } | 624 } |
| 626 frame_access_state()->ClearSPDelta(); | 625 frame_access_state()->ClearSPDelta(); |
| 627 frame_access_state()->SetFrameAccessToDefault(); | 626 frame_access_state()->SetFrameAccessToDefault(); |
| 628 break; | 627 break; |
| 629 } | 628 } |
| 630 case kArchTailCallAddress: { | 629 case kArchTailCallAddress: { |
| 631 CHECK(!instr->InputAt(0)->IsImmediate()); | 630 CHECK(!instr->InputAt(0)->IsImmediate()); |
| 632 __ Jump(i.InputRegister(0)); | 631 __ Jump(i.InputRegister(0)); |
| 633 frame_access_state()->ClearSPDelta(); | 632 frame_access_state()->ClearSPDelta(); |
| 634 frame_access_state()->SetFrameAccessToDefault(); | 633 frame_access_state()->SetFrameAccessToDefault(); |
| (...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2304 padding_size -= v8::internal::Assembler::kInstrSize; | 2303 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2305 } | 2304 } |
| 2306 } | 2305 } |
| 2307 } | 2306 } |
| 2308 | 2307 |
| 2309 #undef __ | 2308 #undef __ |
| 2310 | 2309 |
| 2311 } // namespace compiler | 2310 } // namespace compiler |
| 2312 } // namespace internal | 2311 } // namespace internal |
| 2313 } // namespace v8 | 2312 } // namespace v8 |
| OLD | NEW |