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

Unified Diff: test/cctest/interpreter/bytecode_expectations/UnaryOperators.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/UnaryOperators.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden b/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden
index b94144d76bbb98f2bd4a3f1b305834b19513a69a..eb746c9e4df7cb015c4287adf6815e18a472ac8c 100644
--- a/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden
+++ b/test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden
@@ -13,25 +13,29 @@ snippet: "
}
return x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 25
+bytecode array length: 32
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),
/* 54 S> */ B(LdaSmi), I8(10),
- /* 54 E> */ B(TestEqual), R(0), U8(2),
- B(JumpIfTrue), U8(13),
+ /* 54 E> */ B(TestEqual), R(0), U8(4),
+ B(JumpIfTrue), U8(16),
/* 45 E> */ B(StackCheck),
- /* 65 S> */ B(LdaSmi), I8(10),
- /* 71 E> */ B(Add), R(0), U8(3),
+ /* 65 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ /* 71 E> */ B(AddSmi), I8(10), R(0), U8(5),
B(Star), R(0),
- B(JumpLoop), U8(15), I8(0),
+ B(JumpLoop), U8(18), I8(0),
/* 79 S> */ B(Ldar), R(0),
/* 89 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -44,25 +48,30 @@ snippet: "
} while(x == false);
return x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 22
+bytecode array length: 30
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaFalse),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaFalse),
B(Star), R(0),
/* 49 E> */ B(StackCheck),
- /* 56 S> */ B(Ldar), R(0),
- B(ToBooleanLogicalNot),
+ /* 56 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(Ldar), R(0),
+ /* 61 E> */ B(ToBooleanLogicalNot),
B(Star), R(0),
/* 74 S> */ B(LdaFalse),
- /* 74 E> */ B(TestEqual), R(0), U8(2),
+ /* 74 E> */ B(TestEqual), R(0), U8(6),
B(JumpIfFalse), U8(5),
- B(JumpLoop), U8(12), I8(0),
+ B(JumpLoop), U8(16), I8(0),
/* 85 S> */ B(Ldar), R(0),
/* 95 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -72,19 +81,22 @@ snippet: "
var x = 101;
return void(x * 3);
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 12
+bytecode array length: 16
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(101),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(101),
B(Star), R(0),
/* 47 S> */ B(LdaSmi), I8(3),
- /* 61 E> */ B(Mul), R(0), U8(2),
+ /* 61 E> */ B(Mul), R(0), U8(4),
B(LdaUndefined),
/* 67 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -95,23 +107,29 @@ snippet: "
var y = void (x * x - 1);
return y;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 22
+bytecode array length: 31
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(Wide), B(LdaSmi), I16(1234),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(2),
+ B(Wide), B(LdaSmi), I16(1234),
B(Star), R(0),
- /* 56 S> */ B(Nop),
- /* 64 E> */ B(Mul), R(0), U8(2),
+ /* 56 S> */ B(LdaConstant), U8(1),
B(Star), R(2),
- /* 68 E> */ B(SubSmi), I8(1), R(2), U8(3),
+ B(Ldar), R(0),
+ /* 64 E> */ B(Mul), R(0), U8(4),
+ B(Star), R(3),
+ /* 68 E> */ B(SubSmi), I8(1), R(3), U8(5),
B(LdaUndefined),
B(Star), R(1),
/* 74 S> */ B(Nop),
/* 84 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
]
handlers: [
]
@@ -121,18 +139,21 @@ snippet: "
var x = 13;
return ~x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 11
+bytecode array length: 15
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(13),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(13),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(-1),
- /* 53 E> */ B(BitwiseXor), R(0), U8(2),
+ /* 53 E> */ B(BitwiseXor), R(0), U8(4),
/* 57 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -142,18 +163,21 @@ snippet: "
var x = 13;
return +x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 11
+bytecode array length: 15
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(13),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(13),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(1),
- /* 53 E> */ B(Mul), R(0), U8(2),
+ /* 53 E> */ B(Mul), R(0), U8(4),
/* 57 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -163,18 +187,21 @@ snippet: "
var x = 13;
return -x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 11
+bytecode array length: 15
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(13),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(13),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(-1),
- /* 53 E> */ B(Mul), R(0), U8(2),
+ /* 53 E> */ B(Mul), R(0), U8(4),
/* 57 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698