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

Side by Side Diff: src/assembler.h

Issue 11744020: Rename RelocInfo::NONE to RelocInfo::NONE32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | « src/arm/stub-cache-arm.cc ('k') | src/assembler.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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 EXTERNAL_REFERENCE, // The address of an external C++ function. 241 EXTERNAL_REFERENCE, // The address of an external C++ function.
242 INTERNAL_REFERENCE, // An address inside the same function. 242 INTERNAL_REFERENCE, // An address inside the same function.
243 243
244 // Marks a constant pool. Only used on ARM. 244 // Marks a constant pool. Only used on ARM.
245 // It uses a custom noncompact encoding. 245 // It uses a custom noncompact encoding.
246 CONST_POOL, 246 CONST_POOL,
247 247
248 // add more as needed 248 // add more as needed
249 // Pseudo-types 249 // Pseudo-types
250 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding. 250 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding.
251 NONE, // never recorded 32-bit value 251 NONE32, // never recorded 32-bit value
252 NONE64, // never recorded 64-bit value 252 NONE64, // never recorded 64-bit value
253 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by 253 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by
254 // code aging. 254 // code aging.
255 FIRST_REAL_RELOC_MODE = CODE_TARGET, 255 FIRST_REAL_RELOC_MODE = CODE_TARGET,
256 LAST_REAL_RELOC_MODE = CONST_POOL, 256 LAST_REAL_RELOC_MODE = CONST_POOL,
257 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, 257 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE,
258 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, 258 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE,
259 LAST_CODE_ENUM = DEBUG_BREAK, 259 LAST_CODE_ENUM = DEBUG_BREAK,
260 LAST_GCED_ENUM = GLOBAL_PROPERTY_CELL, 260 LAST_GCED_ENUM = GLOBAL_PROPERTY_CELL,
261 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. 261 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 static inline bool IsExternalReference(Mode mode) { 313 static inline bool IsExternalReference(Mode mode) {
314 return mode == EXTERNAL_REFERENCE; 314 return mode == EXTERNAL_REFERENCE;
315 } 315 }
316 static inline bool IsInternalReference(Mode mode) { 316 static inline bool IsInternalReference(Mode mode) {
317 return mode == INTERNAL_REFERENCE; 317 return mode == INTERNAL_REFERENCE;
318 } 318 }
319 static inline bool IsDebugBreakSlot(Mode mode) { 319 static inline bool IsDebugBreakSlot(Mode mode) {
320 return mode == DEBUG_BREAK_SLOT; 320 return mode == DEBUG_BREAK_SLOT;
321 } 321 }
322 static inline bool IsNone(Mode mode) { 322 static inline bool IsNone(Mode mode) {
323 return mode == NONE || mode == NONE64; 323 return mode == NONE32 || mode == NONE64;
324 } 324 }
325 static inline bool IsCodeAgeSequence(Mode mode) { 325 static inline bool IsCodeAgeSequence(Mode mode) {
326 return mode == CODE_AGE_SEQUENCE; 326 return mode == CODE_AGE_SEQUENCE;
327 } 327 }
328 static inline int ModeMask(Mode mode) { return 1 << mode; } 328 static inline int ModeMask(Mode mode) { return 1 << mode; }
329 329
330 // Accessors 330 // Accessors
331 byte* pc() const { return pc_; } 331 byte* pc() const { return pc_; }
332 void set_pc(byte* pc) { pc_ = pc; } 332 void set_pc(byte* pc) { pc_ = pc; }
333 Mode rmode() const { return rmode_; } 333 Mode rmode() const { return rmode_; }
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 public: 969 public:
970 NullCallWrapper() { } 970 NullCallWrapper() { }
971 virtual ~NullCallWrapper() { } 971 virtual ~NullCallWrapper() { }
972 virtual void BeforeCall(int call_size) const { } 972 virtual void BeforeCall(int call_size) const { }
973 virtual void AfterCall() const { } 973 virtual void AfterCall() const { }
974 }; 974 };
975 975
976 } } // namespace v8::internal 976 } } // namespace v8::internal
977 977
978 #endif // V8_ASSEMBLER_H_ 978 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698