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

Unified Diff: test/cctest/interpreter/bytecode_expectations/BreakableBlocks.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/BreakableBlocks.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden b/test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
index 61915b27ead6b941fd6ee05b0eb4e302cdf58093..fcc035efc6378650add0ddb8bb5806926c559f8e 100644
--- a/test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
+++ b/test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden
@@ -15,21 +15,25 @@ snippet: "
}
return x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 16
+bytecode array length: 23
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaZero),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaZero),
B(Star), R(0),
- /* 56 S> */ B(LdaSmi), I8(1),
- /* 62 E> */ B(Add), R(0), U8(2),
+ /* 56 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ /* 62 E> */ B(AddSmi), I8(1), R(0), U8(4),
B(Star), R(0),
/* 69 S> */ B(Jump), U8(2),
/* 97 S> */ B(Ldar), R(0),
/* 107 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -49,45 +53,54 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 69
+bytecode array length: 81
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 44 S> */ B(LdaZero),
+ /* 44 S> */ B(LdaConstant), U8(0),
+ B(Star), R(3),
+ B(LdaZero),
B(Star), R(0),
- /* 71 S> */ B(LdaZero),
+ /* 71 S> */ B(LdaConstant), U8(1),
+ B(Star), R(3),
+ B(LdaZero),
B(Star), R(1),
/* 76 S> */ B(LdaSmi), I8(10),
- /* 76 E> */ B(TestLessThan), R(1), U8(2),
- B(JumpIfFalse), U8(54),
+ /* 76 E> */ B(TestLessThan), R(1), U8(6),
+ B(JumpIfFalse), U8(58),
/* 58 E> */ B(StackCheck),
- /* 106 S> */ B(LdaZero),
+ /* 106 S> */ B(LdaConstant), U8(2),
+ B(Star), R(3),
+ B(LdaZero),
B(Star), R(2),
/* 111 S> */ B(LdaSmi), I8(3),
- /* 111 E> */ B(TestLessThan), R(2), U8(4),
+ /* 111 E> */ B(TestLessThan), R(2), U8(10),
B(JumpIfFalse), U8(34),
/* 93 E> */ B(StackCheck),
/* 129 S> */ B(Ldar), R(0),
- B(Inc), U8(6),
+ B(Inc), U8(12),
B(Star), R(0),
/* 142 S> */ B(Ldar), R(2),
- /* 148 E> */ B(Add), R(1), U8(7),
+ /* 148 E> */ B(Add), R(1), U8(13),
B(Star), R(3),
B(LdaSmi), I8(12),
- /* 152 E> */ B(TestEqual), R(3), U8(8),
+ /* 152 E> */ B(TestEqual), R(3), U8(14),
B(JumpIfFalse), U8(4),
/* 161 S> */ B(Jump), U8(20),
/* 118 S> */ B(Ldar), R(2),
- B(Inc), U8(5),
+ B(Inc), U8(11),
B(Star), R(2),
B(JumpLoop), U8(36), I8(1),
/* 84 S> */ B(Ldar), R(1),
- B(Inc), U8(3),
+ B(Inc), U8(7),
B(Star), R(1),
- B(JumpLoop), U8(56), I8(0),
+ B(JumpLoop), U8(60), I8(0),
/* 188 S> */ B(Ldar), R(0),
/* 200 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["sum"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
]
handlers: [
]
@@ -100,9 +113,9 @@ snippet: "
break outer;
}
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 31
+bytecode array length: 39
bytecodes: [
/* 30 E> */ B(StackCheck),
B(Ldar), R(closure),
@@ -112,8 +125,12 @@ bytecodes: [
B(StaCurrentContextSlot), U8(4),
B(CreateClosure), U8(1), U8(2), U8(2),
B(Star), R(0),
- /* 53 S> */ B(LdaSmi), I8(10),
+ /* 53 S> */ B(LdaConstant), U8(2),
+ B(Star), R(3),
+ B(LdaSmi), I8(10),
/* 53 E> */ B(StaCurrentContextSlot), U8(4),
+ B(LdaConstant), U8(3),
+ B(Star), R(3),
B(Mov), R(0), R(1),
B(Ldar), R(0),
/* 88 S> */ B(Jump), U8(2),
@@ -124,6 +141,8 @@ bytecodes: [
constant pool: [
FIXED_ARRAY_TYPE,
SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
]
handlers: [
]
@@ -141,42 +160,55 @@ snippet: "
}
x = 4;
"
-frame size: 4
+frame size: 5
parameter count: 1
-bytecode array length: 54
+bytecode array length: 74
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(2),
B(LdaTheHole),
B(StaCurrentContextSlot), U8(4),
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(1),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(4),
+ B(LdaSmi), I8(1),
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
B(Ldar), R(closure),
- B(CreateBlockContext), U8(0),
+ B(CreateBlockContext), U8(1),
B(PushContext), R(3),
B(LdaTheHole),
B(StaCurrentContextSlot), U8(4),
- B(CreateClosure), U8(1), U8(2), U8(2),
+ B(CreateClosure), U8(2), U8(4), U8(2),
B(Star), R(0),
- /* 76 S> */ B(LdaSmi), I8(2),
+ /* 76 S> */ B(LdaConstant), U8(3),
+ B(Star), R(4),
+ B(LdaSmi), I8(2),
/* 76 E> */ B(StaCurrentContextSlot), U8(4),
+ B(LdaConstant), U8(4),
+ B(Star), R(4),
B(Mov), R(0), R(1),
/* 118 S> */ B(LdaCurrentContextSlot), U8(4),
B(JumpIfToBooleanFalse), U8(6),
/* 125 S> */ B(PopContext), R(3),
- B(Jump), U8(8),
- /* 142 S> */ B(LdaSmi), I8(3),
+ B(Jump), U8(12),
+ /* 142 S> */ B(LdaConstant), U8(3),
+ B(Star), R(4),
+ B(LdaSmi), I8(3),
/* 144 E> */ B(StaCurrentContextSlot), U8(4),
B(PopContext), R(3),
- /* 155 S> */ B(LdaSmi), I8(4),
+ /* 155 S> */ B(LdaConstant), U8(0),
+ B(Star), R(4),
+ B(LdaSmi), I8(4),
/* 157 E> */ B(StaCurrentContextSlot), U8(4),
B(LdaUndefined),
/* 162 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
FIXED_ARRAY_TYPE,
SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698