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

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

Issue 2554723004: [Interpreter] Transform StrictEquality with null/undefined to special bytecodes. (Closed)
Patch Set: rebased the patch. Created 4 years 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/interpreter/mkpeephole.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden b/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
index 51c9c3ab4ce2888f8625a617d54c2c622603bd72..1ee3738f2e9e950523715d606d124fea71d291e4 100644
--- a/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
+++ b/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
@@ -121,3 +121,119 @@ constant pool: [
handlers: [
]
+---
+snippet: "
+ var obj_a = {val:1};
+ var b = 10;
+ if (obj_a === null) { b = 20;}
+ return b;
+"
+frame size: 3
+parameter count: 1
+bytecode array length: 24
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2),
+ B(Mov), R(2), R(0),
+ /* 63 S> */ B(LdaSmi), U8(10),
+ B(Star), R(1),
+ /* 67 S> */ B(TestNull), R(0),
+ B(JumpIfFalse), U8(6),
+ /* 89 S> */ B(LdaSmi), U8(20),
+ B(Star), R(1),
+ /* 98 S> */ B(Ldar), R(1),
+ /* 108 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ var obj_a = {val:1};
+ var b = 10;
+ if (obj_a === undefined) { b = 20;}
+ return b;
+"
+frame size: 3
+parameter count: 1
+bytecode array length: 24
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2),
+ B(Mov), R(2), R(0),
+ /* 63 S> */ B(LdaSmi), U8(10),
+ B(Star), R(1),
+ /* 67 S> */ B(TestUndefined), R(0),
+ B(JumpIfFalse), U8(6),
+ /* 94 S> */ B(LdaSmi), U8(20),
+ B(Star), R(1),
+ /* 103 S> */ B(Ldar), R(1),
+ /* 113 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ var obj_a = {val:1};
+ var b = 10;
+ if (obj_a !== null) { b = 20;}
+ return b;
+"
+frame size: 3
+parameter count: 1
+bytecode array length: 24
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2),
+ B(Mov), R(2), R(0),
+ /* 63 S> */ B(LdaSmi), U8(10),
+ B(Star), R(1),
+ /* 67 S> */ B(TestNull), R(0),
+ B(JumpIfTrue), U8(6),
+ /* 89 S> */ B(LdaSmi), U8(20),
+ B(Star), R(1),
+ /* 98 S> */ B(Ldar), R(1),
+ /* 108 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+]
+handlers: [
+]
+
+---
+snippet: "
+ var obj_a = {val:1};
+ var b = 10;
+ if (obj_a !== undefined) { b = 20;}
+ return b;
+"
+frame size: 3
+parameter count: 1
+bytecode array length: 24
+bytecodes: [
+ /* 30 E> */ B(StackCheck),
+ /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(2),
+ B(Mov), R(2), R(0),
+ /* 63 S> */ B(LdaSmi), U8(10),
+ B(Star), R(1),
+ /* 67 S> */ B(TestUndefined), R(0),
+ B(JumpIfTrue), U8(6),
+ /* 94 S> */ B(LdaSmi), U8(20),
+ B(Star), R(1),
+ /* 103 S> */ B(Ldar), R(1),
+ /* 113 S> */ B(Return),
+]
+constant pool: [
+ FIXED_ARRAY_TYPE,
+]
+handlers: [
+]
+
« no previous file with comments | « src/interpreter/mkpeephole.cc ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698