OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 1311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 static int GetCmpImmediateRawImmediate(Instr instr); | 1322 static int GetCmpImmediateRawImmediate(Instr instr); |
1323 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); | 1323 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); |
1324 static bool IsMovT(Instr instr); | 1324 static bool IsMovT(Instr instr); |
1325 static bool IsMovW(Instr instr); | 1325 static bool IsMovW(Instr instr); |
1326 | 1326 |
1327 // Constants in pools are accessed via pc relative addressing, which can | 1327 // Constants in pools are accessed via pc relative addressing, which can |
1328 // reach +/-4KB thereby defining a maximum distance between the instruction | 1328 // reach +/-4KB thereby defining a maximum distance between the instruction |
1329 // and the accessed constant. | 1329 // and the accessed constant. |
1330 static const int kMaxDistToPool = 4*KB; | 1330 static const int kMaxDistToPool = 4*KB; |
1331 static const int kMaxNumPendingRelocInfo = kMaxDistToPool/kInstrSize; | 1331 static const int kMaxNumPendingRelocInfo = kMaxDistToPool/kInstrSize; |
| 1332 STATIC_ASSERT((kConstantPoolLengthMaxMask & kMaxNumPendingRelocInfo) == |
| 1333 kMaxNumPendingRelocInfo); |
1332 | 1334 |
1333 // Postpone the generation of the constant pool for the specified number of | 1335 // Postpone the generation of the constant pool for the specified number of |
1334 // instructions. | 1336 // instructions. |
1335 void BlockConstPoolFor(int instructions); | 1337 void BlockConstPoolFor(int instructions); |
1336 | 1338 |
1337 // Check if is time to emit a constant pool. | 1339 // Check if is time to emit a constant pool. |
1338 void CheckConstPool(bool force_emit, bool require_jump); | 1340 void CheckConstPool(bool force_emit, bool require_jump); |
1339 | 1341 |
1340 protected: | 1342 protected: |
1341 // Relocation for a type-recording IC has the AST id added to it. This | 1343 // Relocation for a type-recording IC has the AST id added to it. This |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 | 1530 |
1529 private: | 1531 private: |
1530 Assembler* asm_; | 1532 Assembler* asm_; |
1531 bool old_value_; | 1533 bool old_value_; |
1532 }; | 1534 }; |
1533 | 1535 |
1534 | 1536 |
1535 } } // namespace v8::internal | 1537 } } // namespace v8::internal |
1536 | 1538 |
1537 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1539 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |