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

Unified Diff: src/regexp-macro-assembler-irregexp-inl.h

Issue 18613: Fix endianism issues in regexp interpreter. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/regexp-macro-assembler-irregexp.cc ('k') | src/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/regexp-macro-assembler-irregexp-inl.h
===================================================================
--- src/regexp-macro-assembler-irregexp-inl.h (revision 1112)
+++ src/regexp-macro-assembler-irregexp-inl.h (working copy)
@@ -43,7 +43,7 @@
if (pc_ + 3 >= buffer_.length()) {
Expand();
}
- Store32(buffer_.start() + pc_, word);
+ *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word;
pc_ += 4;
}
@@ -53,7 +53,7 @@
if (pc_ + 1 >= buffer_.length()) {
Expand();
}
- Store16(buffer_.start() + pc_, word);
+ *reinterpret_cast<uint16_t*>(buffer_.start() + pc_) = word;
pc_ += 2;
}
@@ -63,7 +63,7 @@
if (pc_ + 3 >= buffer_.length()) {
Expand();
}
- Store32(buffer_.start() + pc_, word);
+ *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word;
pc_ += 4;
}
« no previous file with comments | « src/regexp-macro-assembler-irregexp.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698