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

Unified Diff: test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.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/PrimitiveExpressions.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden b/test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden
index 055c016e24610a152e6797bd7284e47d13216444..22beb33e7cf4f33b443916f374ca037c51348842 100644
--- a/test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden
+++ b/test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden
@@ -9,17 +9,20 @@ wrap: yes
snippet: "
var x = 0; return x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 6
+bytecode array length: 10
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),
/* 45 S> */ B(Nop),
/* 55 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -28,18 +31,21 @@ handlers: [
snippet: "
var x = 0; return x + 3;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 10
+bytecode array length: 14
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),
/* 45 S> */ B(LdaSmi), I8(3),
- /* 54 E> */ B(Add), R(0), U8(2),
+ /* 54 E> */ B(Add), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -48,18 +54,21 @@ handlers: [
snippet: "
var x = 0; return x - 3;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 10
+bytecode array length: 14
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),
/* 45 S> */ B(LdaSmi), I8(3),
- /* 54 E> */ B(Sub), R(0), U8(2),
+ /* 54 E> */ B(Sub), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -68,18 +77,21 @@ handlers: [
snippet: "
var x = 4; return x * 3;
"
-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(4),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(4),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(3),
- /* 54 E> */ B(Mul), R(0), U8(2),
+ /* 54 E> */ B(Mul), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -88,18 +100,21 @@ handlers: [
snippet: "
var x = 4; return x / 3;
"
-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(4),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(4),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(3),
- /* 54 E> */ B(Div), R(0), U8(2),
+ /* 54 E> */ B(Div), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -108,18 +123,21 @@ handlers: [
snippet: "
var x = 4; return x % 3;
"
-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(4),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(4),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(3),
- /* 54 E> */ B(Mod), R(0), U8(2),
+ /* 54 E> */ B(Mod), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -128,18 +146,21 @@ handlers: [
snippet: "
var x = 1; return x | 2;
"
-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(1),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(1),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(2),
- /* 54 E> */ B(BitwiseOr), R(0), U8(2),
+ /* 54 E> */ B(BitwiseOr), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -148,18 +169,21 @@ handlers: [
snippet: "
var x = 1; return x ^ 2;
"
-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(1),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(1),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(2),
- /* 54 E> */ B(BitwiseXor), R(0), U8(2),
+ /* 54 E> */ B(BitwiseXor), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -168,18 +192,21 @@ handlers: [
snippet: "
var x = 1; return x & 2;
"
-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(1),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(1),
B(Star), R(0),
/* 45 S> */ B(LdaSmi), I8(2),
- /* 54 E> */ B(BitwiseAnd), R(0), U8(2),
+ /* 54 E> */ B(BitwiseAnd), R(0), U8(4),
/* 59 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -188,18 +215,21 @@ handlers: [
snippet: "
var x = 10; return x << 3;
"
-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(10),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(10),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(3),
- /* 55 E> */ B(ShiftLeft), R(0), U8(2),
+ /* 55 E> */ B(ShiftLeft), R(0), U8(4),
/* 61 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -208,18 +238,21 @@ handlers: [
snippet: "
var x = 10; return x >> 3;
"
-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(10),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(10),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(3),
- /* 55 E> */ B(ShiftRight), R(0), U8(2),
+ /* 55 E> */ B(ShiftRight), R(0), U8(4),
/* 61 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -228,18 +261,21 @@ handlers: [
snippet: "
var x = 10; return x >>> 3;
"
-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(10),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(10),
B(Star), R(0),
/* 46 S> */ B(LdaSmi), I8(3),
- /* 55 E> */ B(ShiftRightLogical), R(0), U8(2),
+ /* 55 E> */ B(ShiftRightLogical), R(0), U8(4),
/* 62 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -248,17 +284,20 @@ handlers: [
snippet: "
var x = 0; return (x, 3);
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 7
+bytecode array length: 11
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),
/* 45 S> */ B(LdaSmi), I8(3),
/* 60 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698