Chromium Code Reviews

Unified Diff: src/regexp-macro-assembler-irregexp.cc

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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/regexp-macro-assembler-irregexp-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/regexp-macro-assembler-irregexp.cc
===================================================================
--- src/regexp-macro-assembler-irregexp.cc (revision 1111)
+++ src/regexp-macro-assembler-irregexp.cc (working copy)
@@ -60,8 +60,8 @@
int pos = l->pos();
while (pos != 0) {
int fixup = pos;
- pos = Load32(buffer_.start() + fixup);
- Store32(buffer_.start() + fixup, pc_);
+ pos = *reinterpret_cast<int32_t*>(buffer_.start() + fixup);
+ *reinterpret_cast<uint32_t*>(buffer_.start() + fixup) = pc_;
}
}
l->bind_to(pc_);
« no previous file with comments | « no previous file | src/regexp-macro-assembler-irregexp-inl.h » ('j') | no next file with comments »

Powered by Google App Engine