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/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 case kArchJmp: | 166 case kArchJmp: |
167 __ B(code_->GetLabel(i.InputBlock(0))); | 167 __ B(code_->GetLabel(i.InputBlock(0))); |
168 break; | 168 break; |
169 case kArchNop: | 169 case kArchNop: |
170 // don't emit code for nops. | 170 // don't emit code for nops. |
171 break; | 171 break; |
172 case kArchRet: | 172 case kArchRet: |
173 AssembleReturn(); | 173 AssembleReturn(); |
174 break; | 174 break; |
| 175 case kArchStackPointer: |
| 176 __ mov(i.OutputRegister(), masm()->StackPointer()); |
| 177 break; |
175 case kArchTruncateDoubleToI: | 178 case kArchTruncateDoubleToI: |
176 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 179 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
177 break; | 180 break; |
178 case kArm64Add: | 181 case kArm64Add: |
179 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); | 182 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
180 break; | 183 break; |
181 case kArm64Add32: | 184 case kArm64Add32: |
182 if (FlagsModeField::decode(opcode) != kFlags_none) { | 185 if (FlagsModeField::decode(opcode) != kFlags_none) { |
183 __ Adds(i.OutputRegister32(), i.InputRegister32(0), | 186 __ Adds(i.OutputRegister32(), i.InputRegister32(0), |
184 i.InputOperand32(1)); | 187 i.InputOperand32(1)); |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 } | 927 } |
925 } | 928 } |
926 MarkLazyDeoptSite(); | 929 MarkLazyDeoptSite(); |
927 } | 930 } |
928 | 931 |
929 #undef __ | 932 #undef __ |
930 | 933 |
931 } // namespace compiler | 934 } // namespace compiler |
932 } // namespace internal | 935 } // namespace internal |
933 } // namespace v8 | 936 } // namespace v8 |
OLD | NEW |