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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 break; | 261 break; |
262 case kArm64Shr32: | 262 case kArm64Shr32: |
263 ASSEMBLE_SHIFT(Lsr, 32); | 263 ASSEMBLE_SHIFT(Lsr, 32); |
264 break; | 264 break; |
265 case kArm64Sar: | 265 case kArm64Sar: |
266 ASSEMBLE_SHIFT(Asr, 64); | 266 ASSEMBLE_SHIFT(Asr, 64); |
267 break; | 267 break; |
268 case kArm64Sar32: | 268 case kArm64Sar32: |
269 ASSEMBLE_SHIFT(Asr, 32); | 269 ASSEMBLE_SHIFT(Asr, 32); |
270 break; | 270 break; |
| 271 case kArm64Ror: |
| 272 ASSEMBLE_SHIFT(Ror, 64); |
| 273 break; |
| 274 case kArm64Ror32: |
| 275 ASSEMBLE_SHIFT(Ror, 32); |
| 276 break; |
271 case kArm64CallCodeObject: { | 277 case kArm64CallCodeObject: { |
272 if (instr->InputAt(0)->IsImmediate()) { | 278 if (instr->InputAt(0)->IsImmediate()) { |
273 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); | 279 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); |
274 __ Call(code, RelocInfo::CODE_TARGET); | 280 __ Call(code, RelocInfo::CODE_TARGET); |
275 RecordSafepoint(instr->pointer_map(), Safepoint::kSimple, 0, | 281 RecordSafepoint(instr->pointer_map(), Safepoint::kSimple, 0, |
276 Safepoint::kNoLazyDeopt); | 282 Safepoint::kNoLazyDeopt); |
277 } else { | 283 } else { |
278 Register reg = i.InputRegister(0); | 284 Register reg = i.InputRegister(0); |
279 int entry = Code::kHeaderSize - kHeapObjectTag; | 285 int entry = Code::kHeaderSize - kHeapObjectTag; |
280 __ Ldr(reg, MemOperand(reg, entry)); | 286 __ Ldr(reg, MemOperand(reg, entry)); |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 } | 834 } |
829 | 835 |
830 | 836 |
831 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 837 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
832 | 838 |
833 #undef __ | 839 #undef __ |
834 | 840 |
835 } // namespace compiler | 841 } // namespace compiler |
836 } // namespace internal | 842 } // namespace internal |
837 } // namespace v8 | 843 } // namespace v8 |
OLD | NEW |