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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. Created 3 years, 10 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/GenerateTestUndetectable.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden b/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
index d12f5a6d0539195a5a3f56be810263ed10b391a1..86a5e87a38b88202db1241540681839825855d2b 100644
--- a/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
+++ b/test/cctest/interpreter/bytecode_expectations/GenerateTestUndetectable.golden
@@ -12,24 +12,32 @@ snippet: "
if (obj_a == null) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndetectable), R(0),
- B(JumpIfFalse), U8(6),
- /* 88 S> */ B(LdaSmi), I8(20),
+ B(JumpIfFalse), U8(10),
+ /* 88 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 97 S> */ B(Ldar), R(1),
/* 107 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -41,24 +49,32 @@ snippet: "
if (obj_a == undefined) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndetectable), R(0),
- B(JumpIfFalse), U8(6),
- /* 93 S> */ B(LdaSmi), I8(20),
+ B(JumpIfFalse), U8(10),
+ /* 93 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 102 S> */ B(Ldar), R(1),
/* 112 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -70,24 +86,32 @@ snippet: "
if (obj_a != null) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndetectable), R(0),
- B(JumpIfTrue), U8(6),
- /* 88 S> */ B(LdaSmi), I8(20),
+ B(JumpIfTrue), U8(10),
+ /* 88 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 97 S> */ B(Ldar), R(1),
/* 107 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -99,24 +123,32 @@ snippet: "
if (obj_a != undefined) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndetectable), R(0),
- B(JumpIfTrue), U8(6),
- /* 93 S> */ B(LdaSmi), I8(20),
+ B(JumpIfTrue), U8(10),
+ /* 93 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 102 S> */ B(Ldar), R(1),
/* 112 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -128,24 +160,32 @@ snippet: "
if (obj_a === null) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestNull), R(0),
- B(JumpIfFalse), U8(6),
- /* 89 S> */ B(LdaSmi), I8(20),
+ B(JumpIfFalse), U8(10),
+ /* 89 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 98 S> */ B(Ldar), R(1),
/* 108 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -157,24 +197,32 @@ snippet: "
if (obj_a === undefined) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndefined), R(0),
- B(JumpIfFalse), U8(6),
- /* 94 S> */ B(LdaSmi), I8(20),
+ B(JumpIfFalse), U8(10),
+ /* 94 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 103 S> */ B(Ldar), R(1),
/* 113 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -186,24 +234,32 @@ snippet: "
if (obj_a !== null) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestNull), R(0),
- B(JumpIfTrue), U8(6),
- /* 89 S> */ B(LdaSmi), I8(20),
+ B(JumpIfTrue), U8(10),
+ /* 89 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 98 S> */ B(Ldar), R(1),
/* 108 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]
@@ -215,24 +271,32 @@ snippet: "
if (obj_a !== undefined) { b = 20;}
return b;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 36
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 46 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
- B(Mov), R(2), R(0),
- /* 63 S> */ B(LdaSmi), I8(10),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(3),
+ B(Star), R(2),
+ B(Mov), R(3), R(0),
+ /* 63 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
B(Star), R(1),
/* 67 S> */ B(TestUndefined), R(0),
- B(JumpIfTrue), U8(6),
- /* 94 S> */ B(LdaSmi), I8(20),
+ B(JumpIfTrue), U8(10),
+ /* 94 S> */ B(LdaConstant), U8(2),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
B(Star), R(1),
/* 103 S> */ B(Ldar), R(1),
/* 113 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["obj_a"],
FIXED_ARRAY_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698