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

Unified Diff: src/deoptimizer.cc

Issue 1193433002: MIPS: Fix unaligned memory access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moved to utils.h Created 5 years, 6 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 | « no previous file | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 4d2c6761f08b0c22b04836f945ff6cdc65d8ed5a..0e6bb835e19141e3f46f185aa3cfd91afb995eef 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -2966,7 +2966,7 @@ TranslatedValue TranslatedState::CreateNextTranslatedValue(
case Translation::DOUBLE_STACK_SLOT: {
int slot_offset = SlotOffsetFp(iterator->Next());
- double value = *(reinterpret_cast<double*>(fp + slot_offset));
+ double value = ReadDoubleValue(fp + slot_offset);
if (trace_file != nullptr) {
PrintF(trace_file, "%e ; (double) [fp %c %d] ", value,
slot_offset < 0 ? '-' : '+', std::abs(slot_offset));
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698