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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 ldp(d10, d11, tos); | 1301 ldp(d10, d11, tos); |
1302 ldp(d12, d13, tos); | 1302 ldp(d12, d13, tos); |
1303 ldp(d14, d15, tos); | 1303 ldp(d14, d15, tos); |
1304 } | 1304 } |
1305 | 1305 |
1306 | 1306 |
1307 void MacroAssembler::AssertStackConsistency() { | 1307 void MacroAssembler::AssertStackConsistency() { |
1308 // Avoid emitting code when !use_real_abort() since non-real aborts cause too | 1308 // Avoid emitting code when !use_real_abort() since non-real aborts cause too |
1309 // much code to be generated. | 1309 // much code to be generated. |
1310 if (emit_debug_code() && use_real_aborts()) { | 1310 if (emit_debug_code() && use_real_aborts()) { |
1311 if (csp.Is(StackPointer()) || CpuFeatures::IsSupported(ALWAYS_ALIGN_CSP)) { | 1311 if (csp.Is(StackPointer())) { |
1312 // Always check the alignment of csp if ALWAYS_ALIGN_CSP is true. We | 1312 // Always check the alignment of csp if ALWAYS_ALIGN_CSP is true. We |
1313 // can't check the alignment of csp without using a scratch register (or | 1313 // can't check the alignment of csp without using a scratch register (or |
1314 // clobbering the flags), but the processor (or simulator) will abort if | 1314 // clobbering the flags), but the processor (or simulator) will abort if |
1315 // it is not properly aligned during a load. | 1315 // it is not properly aligned during a load. |
1316 ldr(xzr, MemOperand(csp, 0)); | 1316 ldr(xzr, MemOperand(csp, 0)); |
1317 } | 1317 } |
1318 if (FLAG_enable_slow_asserts && !csp.Is(StackPointer())) { | 1318 if (FLAG_enable_slow_asserts && !csp.Is(StackPointer())) { |
1319 Label ok; | 1319 Label ok; |
1320 // Check that csp <= StackPointer(), preserving all registers and NZCV. | 1320 // Check that csp <= StackPointer(), preserving all registers and NZCV. |
1321 sub(StackPointer(), csp, StackPointer()); | 1321 sub(StackPointer(), csp, StackPointer()); |
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5388 } | 5388 } |
5389 } | 5389 } |
5390 | 5390 |
5391 | 5391 |
5392 #undef __ | 5392 #undef __ |
5393 | 5393 |
5394 | 5394 |
5395 } } // namespace v8::internal | 5395 } } // namespace v8::internal |
5396 | 5396 |
5397 #endif // V8_TARGET_ARCH_ARM64 | 5397 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |