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

Unified Diff: src/v8memory.h

Issue 23560010: Thumb2 Backend: 16-bit instruction encoding helper methods Base URL: HEAD^
Patch Set: Created 7 years, 3 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
Index: src/v8memory.h
diff --git a/src/v8memory.h b/src/v8memory.h
index c72ce7ab7b88d258e4e589948d87d6a98752da29..fd719241bfff6ab014d76438102a907218dad035 100644
--- a/src/v8memory.h
+++ b/src/v8memory.h
@@ -48,6 +48,10 @@ class Memory {
return *reinterpret_cast<uint32_t*>(addr);
}
+ static int16_t& int16_at(Address addr) {
+ return *reinterpret_cast<int16_t*>(addr);
+ }
+
static int32_t& int32_at(Address addr) {
return *reinterpret_cast<int32_t*>(addr);
}
« src/arm/constants-arm.h ('K') | « src/assembler.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698