Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: src/arm/assembler-arm.h

Issue 11242002: Change constant pool marker to be the unconditional, permanently undefined instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698