OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 } | 705 } |
706 case kArchRet: | 706 case kArchRet: |
707 AssembleReturn(); | 707 AssembleReturn(); |
708 break; | 708 break; |
709 case kArchStackPointer: | 709 case kArchStackPointer: |
710 __ movq(i.OutputRegister(), rsp); | 710 __ movq(i.OutputRegister(), rsp); |
711 break; | 711 break; |
712 case kArchFramePointer: | 712 case kArchFramePointer: |
713 __ movq(i.OutputRegister(), rbp); | 713 __ movq(i.OutputRegister(), rbp); |
714 break; | 714 break; |
| 715 case kArchParentFramePointer: |
| 716 if (frame_access_state()->frame()->needs_frame()) { |
| 717 __ movq(i.OutputRegister(), Operand(rbp, 0)); |
| 718 } else { |
| 719 __ movq(i.OutputRegister(), rbp); |
| 720 } |
| 721 break; |
715 case kArchTruncateDoubleToI: { | 722 case kArchTruncateDoubleToI: { |
716 auto result = i.OutputRegister(); | 723 auto result = i.OutputRegister(); |
717 auto input = i.InputDoubleRegister(0); | 724 auto input = i.InputDoubleRegister(0); |
718 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input); | 725 auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input); |
719 __ Cvttsd2siq(result, input); | 726 __ Cvttsd2siq(result, input); |
720 __ cmpq(result, Immediate(1)); | 727 __ cmpq(result, Immediate(1)); |
721 __ j(overflow, ool->entry()); | 728 __ j(overflow, ool->entry()); |
722 __ bind(ool->exit()); | 729 __ bind(ool->exit()); |
723 break; | 730 break; |
724 } | 731 } |
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2169 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2163 __ Nop(padding_size); | 2170 __ Nop(padding_size); |
2164 } | 2171 } |
2165 } | 2172 } |
2166 | 2173 |
2167 #undef __ | 2174 #undef __ |
2168 | 2175 |
2169 } // namespace compiler | 2176 } // namespace compiler |
2170 } // namespace internal | 2177 } // namespace internal |
2171 } // namespace v8 | 2178 } // namespace v8 |
OLD | NEW |