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

Unified Diff: test/cctest/interpreter/test-bytecode-generator.cc

Issue 1423373004: MIPS: Fix unaligned read of bytecodes in interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 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/utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/test-bytecode-generator.cc
diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc
index 5f8ce63a2d4197b0cd0d9bba6e7fdf0952660cbd..a9a919c0781c48fd3b6707656c1f2c850634e5f1 100644
--- a/test/cctest/interpreter/test-bytecode-generator.cc
+++ b/test/cctest/interpreter/test-bytecode-generator.cc
@@ -180,8 +180,8 @@ static void CheckBytecodeArrayEqual(const ExpectedSnippet<T>& expected,
static_cast<uint32_t>(expected.bytecode[operand_index]);
break;
case OperandSize::kShort:
- expected_operand = Bytecodes::ShortOperandFromBytes(
- &expected.bytecode[operand_index]);
+ expected_operand =
+ ReadUnalignedUInt16(&expected.bytecode[operand_index]);
break;
default:
UNREACHABLE();
« no previous file with comments | « src/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698