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

Unified Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 1435283002: [Interpreter] Adds an optimization to remove redundant Ldar/Star. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: test/unittests/interpreter/bytecode-array-builder-unittest.cc
diff --git a/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
index 30202c9d7252c9b42c544b9778f4782ce430e8df..0ce19086db28b082f472fbe72739cd245f4b24b1 100644
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
@@ -41,7 +41,9 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
// Emit accumulator transfers.
Register reg(0);
- builder.LoadAccumulatorWithRegister(reg).StoreAccumulatorInRegister(reg);
+ builder.LoadAccumulatorWithRegister(reg)
+ .LoadNull()
rmcilroy 2015/11/12 14:24:26 nit - comment on why this is required.
mythria 2015/11/13 10:14:37 Done.
+ .StoreAccumulatorInRegister(reg);
// Emit global load / store operations.
builder.LoadGlobal(0, 1, LanguageMode::SLOPPY, TypeofMode::NOT_INSIDE_TYPEOF)

Powered by Google App Engine
This is Rietveld 408576698