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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 if (instr->InputAt(0)->IsImmediate()) { | 569 if (instr->InputAt(0)->IsImmediate()) { |
570 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), | 570 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), |
571 RelocInfo::CODE_TARGET); | 571 RelocInfo::CODE_TARGET); |
572 } else { | 572 } else { |
573 __ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); | 573 __ daddiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); |
574 __ Jump(at); | 574 __ Jump(at); |
575 } | 575 } |
576 frame_access_state()->ClearSPDelta(); | 576 frame_access_state()->ClearSPDelta(); |
577 break; | 577 break; |
578 } | 578 } |
| 579 case kArchTailCallAddress: { |
| 580 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
| 581 AssembleDeconstructActivationRecord(stack_param_delta); |
| 582 CHECK(!instr->InputAt(0)->IsImmediate()); |
| 583 __ Jump(i.InputRegister(0)); |
| 584 frame_access_state()->ClearSPDelta(); |
| 585 break; |
| 586 } |
579 case kArchCallJSFunction: { | 587 case kArchCallJSFunction: { |
580 EnsureSpaceForLazyDeopt(); | 588 EnsureSpaceForLazyDeopt(); |
581 Register func = i.InputRegister(0); | 589 Register func = i.InputRegister(0); |
582 if (FLAG_debug_code) { | 590 if (FLAG_debug_code) { |
583 // Check the function's context matches the context argument. | 591 // Check the function's context matches the context argument. |
584 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); | 592 __ ld(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); |
585 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); | 593 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); |
586 } | 594 } |
587 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 595 __ ld(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
588 __ Call(at); | 596 __ Call(at); |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 padding_size -= v8::internal::Assembler::kInstrSize; | 2191 padding_size -= v8::internal::Assembler::kInstrSize; |
2184 } | 2192 } |
2185 } | 2193 } |
2186 } | 2194 } |
2187 | 2195 |
2188 #undef __ | 2196 #undef __ |
2189 | 2197 |
2190 } // namespace compiler | 2198 } // namespace compiler |
2191 } // namespace internal | 2199 } // namespace internal |
2192 } // namespace v8 | 2200 } // namespace v8 |
OLD | NEW |