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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 ASSERT(!r.IsDouble()); | 550 ASSERT(!r.IsDouble()); |
551 | 551 |
552 if (r.IsInteger8() || r.IsUInteger8()) { | 552 if (r.IsInteger8() || r.IsUInteger8()) { |
553 Strb(rt, addr); | 553 Strb(rt, addr); |
554 } else if (r.IsInteger16() || r.IsUInteger16()) { | 554 } else if (r.IsInteger16() || r.IsUInteger16()) { |
555 Strh(rt, addr); | 555 Strh(rt, addr); |
556 } else if (r.IsInteger32()) { | 556 } else if (r.IsInteger32()) { |
557 Str(rt.W(), addr); | 557 Str(rt.W(), addr); |
558 } else { | 558 } else { |
559 ASSERT(rt.Is64Bits()); | 559 ASSERT(rt.Is64Bits()); |
| 560 if (r.IsHeapObject()) { |
| 561 AssertNotSmi(rt); |
| 562 } else if (r.IsSmi()) { |
| 563 AssertSmi(rt); |
| 564 } |
560 Str(rt, addr); | 565 Str(rt, addr); |
561 } | 566 } |
562 } | 567 } |
563 | 568 |
564 | 569 |
565 bool MacroAssembler::NeedExtraInstructionsOrRegisterBranch( | 570 bool MacroAssembler::NeedExtraInstructionsOrRegisterBranch( |
566 Label *label, ImmBranchType b_type) { | 571 Label *label, ImmBranchType b_type) { |
567 bool need_longer_range = false; | 572 bool need_longer_range = false; |
568 // There are two situations in which we care about the offset being out of | 573 // There are two situations in which we care about the offset being out of |
569 // range: | 574 // range: |
(...skipping 4645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5215 } | 5220 } |
5216 } | 5221 } |
5217 | 5222 |
5218 | 5223 |
5219 #undef __ | 5224 #undef __ |
5220 | 5225 |
5221 | 5226 |
5222 } } // namespace v8::internal | 5227 } } // namespace v8::internal |
5223 | 5228 |
5224 #endif // V8_TARGET_ARCH_ARM64 | 5229 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |