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

Unified Diff: src/v8memory.h

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/v8globals.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8memory.h
diff --git a/src/v8memory.h b/src/v8memory.h
index c72ce7ab7b88d258e4e589948d87d6a98752da29..02a81a692d1f102cabd97c28405d94d178d8b064 100644
--- a/src/v8memory.h
+++ b/src/v8memory.h
@@ -76,6 +76,14 @@ class Memory {
return *reinterpret_cast<double*>(addr);
}
+ static float32x4_value_t& float32x4_at(Address addr) {
+ return *reinterpret_cast<float32x4_value_t*>(addr);
+ }
+
+ static int32x4_value_t& int32x4_at(Address addr) {
+ return *reinterpret_cast<int32x4_value_t*>(addr);
+ }
+
static Address& Address_at(Address addr) {
return *reinterpret_cast<Address*>(addr);
}
« no previous file with comments | « src/v8globals.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698