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 } | |
565 Str(rt, addr); | 560 Str(rt, addr); |
566 } | 561 } |
567 } | 562 } |
568 | 563 |
569 | 564 |
570 bool MacroAssembler::NeedExtraInstructionsOrRegisterBranch( | 565 bool MacroAssembler::NeedExtraInstructionsOrRegisterBranch( |
571 Label *label, ImmBranchType b_type) { | 566 Label *label, ImmBranchType b_type) { |
572 bool need_longer_range = false; | 567 bool need_longer_range = false; |
573 // There are two situations in which we care about the offset being out of | 568 // There are two situations in which we care about the offset being out of |
574 // range: | 569 // range: |
(...skipping 4645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5220 } | 5215 } |
5221 } | 5216 } |
5222 | 5217 |
5223 | 5218 |
5224 #undef __ | 5219 #undef __ |
5225 | 5220 |
5226 | 5221 |
5227 } } // namespace v8::internal | 5222 } } // namespace v8::internal |
5228 | 5223 |
5229 #endif // V8_TARGET_ARCH_ARM64 | 5224 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |