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 if (IsMipsArchVariant(kMips32r6)) { |
ivica.bogosavljevic
2016/12/05 10:48:47
Move to a common routine
| |
624 __ Jump(at); | 624 __ Jump(i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); |
625 } else { | |
626 __ addiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); | |
627 __ Jump(at); | |
628 } | |
625 } | 629 } |
626 frame_access_state()->ClearSPDelta(); | 630 frame_access_state()->ClearSPDelta(); |
627 frame_access_state()->SetFrameAccessToDefault(); | 631 frame_access_state()->SetFrameAccessToDefault(); |
628 break; | 632 break; |
629 } | 633 } |
630 case kArchTailCallAddress: { | 634 case kArchTailCallAddress: { |
631 CHECK(!instr->InputAt(0)->IsImmediate()); | 635 CHECK(!instr->InputAt(0)->IsImmediate()); |
632 __ Jump(i.InputRegister(0)); | 636 __ Jump(i.InputRegister(0)); |
633 frame_access_state()->ClearSPDelta(); | 637 frame_access_state()->ClearSPDelta(); |
634 frame_access_state()->SetFrameAccessToDefault(); | 638 frame_access_state()->SetFrameAccessToDefault(); |
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2304 padding_size -= v8::internal::Assembler::kInstrSize; | 2308 padding_size -= v8::internal::Assembler::kInstrSize; |
2305 } | 2309 } |
2306 } | 2310 } |
2307 } | 2311 } |
2308 | 2312 |
2309 #undef __ | 2313 #undef __ |
2310 | 2314 |
2311 } // namespace compiler | 2315 } // namespace compiler |
2312 } // namespace internal | 2316 } // namespace internal |
2313 } // namespace v8 | 2317 } // namespace v8 |
OLD | NEW |