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

Unified Diff: src/assembler.h

Issue 9315032: ARM: Use ubfx and movw instructions to avoid a PC-relative load on Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.h
===================================================================
--- src/assembler.h (revision 10578)
+++ src/assembler.h (working copy)
@@ -203,6 +203,10 @@
CODE_TARGET_CONTEXT, // Code target used for contextual loads and stores.
DEBUG_BREAK, // Code target for the debugger statement.
EMBEDDED_OBJECT,
+#ifdef V8_TARGET_ARCH_ARM
+ // An integer that is shorter than a pointer but uniquely identifies a map.
+ MAP_SIGNATURE,
+#endif
GLOBAL_PROPERTY_CELL,
// Everything after runtime_entry (inclusive) is not GC'ed.
@@ -213,7 +217,9 @@
STATEMENT_POSITION, // See comment for kNoPosition above.
DEBUG_BREAK_SLOT, // Additional code inserted for debug break slot.
EXTERNAL_REFERENCE, // The address of an external C++ function.
+#ifndef V8_TARGET_ARCH_ARM
INTERNAL_REFERENCE, // An address inside the same function.
+#endif
// add more as needed
// Pseudo-types
@@ -238,6 +244,11 @@
static inline bool IsCodeTarget(Mode mode) {
return mode <= LAST_CODE_ENUM;
}
+#ifdef V8_TARGET_ARCH_ARM
+ static inline bool IsMapSignature(Mode mode) {
+ return mode == MAP_SIGNATURE;
+ }
+#endif
static inline bool IsEmbeddedObject(Mode mode) {
return mode == EMBEDDED_OBJECT;
}
@@ -260,9 +271,11 @@
static inline bool IsExternalReference(Mode mode) {
return mode == EXTERNAL_REFERENCE;
}
+#ifndef V8_TARGET_ARCH_ARM
static inline bool IsInternalReference(Mode mode) {
return mode == INTERNAL_REFERENCE;
}
+#endif
static inline bool IsDebugBreakSlot(Mode mode) {
return mode == DEBUG_BREAK_SLOT;
}
« 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