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

Unified Diff: test/cctest/interpreter/bytecode_expectations/IfConditions.golden

Issue 2242463002: [interpreter] VisitForTest for bytecode generator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: nit Created 4 years, 4 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
Index: test/cctest/interpreter/bytecode_expectations/IfConditions.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/IfConditions.golden b/test/cctest/interpreter/bytecode_expectations/IfConditions.golden
index 8372ad9b5b8d4b4f50d3f3935025d5e9e26d3f8b..067e74ceb9c6ae92b824ca089ff215b67f11f376 100644
--- a/test/cctest/interpreter/bytecode_expectations/IfConditions.golden
+++ b/test/cctest/interpreter/bytecode_expectations/IfConditions.golden
@@ -737,3 +737,47 @@ constant pool: [
handlers: [
]
+---
+snippet: "
+ function f(a, b) {
+ if (a == b || a < 0) {
+ return 1;
+ } else if (a > 0 && b > 0) {
+ return 0;
+ } else {
+ return -1;
+ }
+ };
+ f(-1, 1);
+"
+frame size: 0
+parameter count: 3
+bytecode array length: 32
+bytecodes: [
+ /* 10 E> */ B(StackCheck),
+ /* 21 S> */ B(Ldar), R(arg1),
+ /* 27 E> */ B(TestEqual), R(arg0),
+ B(JumpIfTrue), U8(7),
+ B(LdaZero),
+ /* 37 E> */ B(TestLessThan), R(arg0),
+ B(JumpIfFalse), U8(5),
+ /* 48 S> */ B(LdaSmi), U8(1),
+ /* 133 S> */ B(Return),
+ /* 67 S> */ B(LdaZero),
+ /* 73 E> */ B(TestGreaterThan), R(arg0),
+ B(JumpIfFalse), U8(9),
+ B(LdaZero),
+ /* 82 E> */ B(TestGreaterThan), R(arg1),
+ B(JumpIfFalse), U8(4),
+ /* 93 S> */ B(LdaZero),
+ /* 133 S> */ B(Return),
+ /* 118 S> */ B(LdaSmi), U8(-1),
+ /* 133 S> */ B(Return),
+ B(LdaUndefined),
+ /* 133 S> */ B(Return),
+]
+constant pool: [
+]
+handlers: [
+]
+
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698