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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 // upper half of the smi. | 1296 // upper half of the smi. |
1297 STATIC_ASSERT(kSmiTag == 0); | 1297 STATIC_ASSERT(kSmiTag == 0); |
1298 STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32); | 1298 STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32); |
1299 #endif | 1299 #endif |
1300 #if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN | 1300 #if V8_TARGET_ARCH_PPC64 && V8_TARGET_LITTLE_ENDIAN |
1301 #define SmiWordOffset(offset) (offset + kPointerSize / 2) | 1301 #define SmiWordOffset(offset) (offset + kPointerSize / 2) |
1302 #else | 1302 #else |
1303 #define SmiWordOffset(offset) offset | 1303 #define SmiWordOffset(offset) offset |
1304 #endif | 1304 #endif |
1305 | 1305 |
| 1306 // Abort execution if argument is not a FixedArray, enabled via --debug-code. |
| 1307 void AssertFixedArray(Register object); |
| 1308 |
1306 void AssertFunction(Register object); | 1309 void AssertFunction(Register object); |
1307 | 1310 |
1308 // Abort execution if argument is not a JSBoundFunction, | 1311 // Abort execution if argument is not a JSBoundFunction, |
1309 // enabled via --debug-code. | 1312 // enabled via --debug-code. |
1310 void AssertBoundFunction(Register object); | 1313 void AssertBoundFunction(Register object); |
1311 | 1314 |
1312 // Abort execution if argument is not a JSGeneratorObject, | 1315 // Abort execution if argument is not a JSGeneratorObject, |
1313 // enabled via --debug-code. | 1316 // enabled via --debug-code. |
1314 void AssertGeneratorObject(Register object, Register suspend_flags); | 1317 void AssertGeneratorObject(Register object, Register suspend_flags); |
1315 | 1318 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 inline MemOperand NativeContextMemOperand() { | 1543 inline MemOperand NativeContextMemOperand() { |
1541 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1544 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
1542 } | 1545 } |
1543 | 1546 |
1544 #define ACCESS_MASM(masm) masm-> | 1547 #define ACCESS_MASM(masm) masm-> |
1545 | 1548 |
1546 } // namespace internal | 1549 } // namespace internal |
1547 } // namespace v8 | 1550 } // namespace v8 |
1548 | 1551 |
1549 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ | 1552 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ |
OLD | NEW |