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

Unified Diff: test/cctest/interpreter/bytecode_expectations/CompoundExpressions.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/CompoundExpressions.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden b/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
index 620031bf27912cf6b2e4f041b68f1f9e70405ff5..b6aa75f5e6cbe0f325dbd465359822e7c1381750 100644
--- a/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
+++ b/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
@@ -9,20 +9,25 @@ wrap: yes
snippet: "
var a = 1; a += 2;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 16
+bytecode array length: 24
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(AddSmi), I8(2), R(0), U8(2),
- B(Mov), R(0), R(1),
+ /* 45 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(AddSmi), I8(2), R(0), U8(4),
+ B(Mov), R(0), R(2),
B(Star), R(0),
B(LdaUndefined),
/* 53 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]
@@ -31,21 +36,26 @@ handlers: [
snippet: "
var a = 1; a /= 2;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 17
+bytecode array length: 25
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),
- B(Div), R(0), U8(2),
- B(Mov), R(0), R(1),
+ /* 45 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(2),
+ B(Div), R(0), U8(4),
+ B(Mov), R(0), R(2),
B(Star), R(0),
B(LdaUndefined),
/* 53 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]
@@ -54,22 +64,27 @@ handlers: [
snippet: "
var a = { val: 2 }; a.name *= 2;
"
-frame size: 3
+frame size: 4
parameter count: 1
-bytecode array length: 26
+bytecode array length: 34
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- B(Mov), R(1), R(0),
- /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(3),
- B(Star), R(2),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2),
+ B(Star), R(1),
+ B(Mov), R(2), R(0),
+ /* 54 S> */ B(LdaConstant), U8(2),
+ B(Star), R(1),
+ B(LdaNamedProperty), R(0), U8(2), U8(5),
+ B(Star), R(3),
B(LdaSmi), I8(2),
- B(Mul), R(2), U8(5),
- /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(6),
+ B(Mul), R(3), U8(7),
+ /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(2), U8(8),
B(LdaUndefined),
/* 67 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
]
@@ -80,24 +95,29 @@ handlers: [
snippet: "
var a = { 1: 2 }; a[1] ^= 2;
"
-frame size: 4
+frame size: 6
parameter count: 1
-bytecode array length: 29
+bytecode array length: 37
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- B(Mov), R(1), R(0),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2),
+ B(Star), R(1),
+ B(Mov), R(2), R(0),
/* 52 S> */ B(LdaSmi), I8(1),
- B(Star), R(2),
- B(LdaKeyedProperty), R(0), U8(3),
B(Star), R(3),
+ B(LdaSmi), I8(1),
+ B(Star), R(4),
+ B(LdaKeyedProperty), R(0), U8(5),
+ B(Star), R(5),
B(LdaSmi), I8(2),
- B(BitwiseXor), R(3), U8(5),
- /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(6),
+ B(BitwiseXor), R(5), U8(7),
+ /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(3), U8(8),
B(LdaUndefined),
/* 63 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -107,24 +127,29 @@ handlers: [
snippet: "
var a = 1; (function f() { return a; }); a |= 24;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 25
+bytecode array length: 33
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(0),
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(1),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(1),
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
- /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
- /* 75 S> */ B(LdaCurrentContextSlot), U8(4),
+ /* 45 S> */ B(CreateClosure), U8(1), U8(4), U8(2),
+ /* 75 S> */ B(LdaConstant), U8(0),
B(Star), R(1),
- B(BitwiseOrSmi), I8(24), R(1), U8(3),
+ B(LdaCurrentContextSlot), U8(4),
+ B(Star), R(2),
+ B(BitwiseOrSmi), I8(24), R(2), U8(5),
/* 77 E> */ B(StaCurrentContextSlot), U8(4),
B(LdaUndefined),
/* 84 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
SHARED_FUNCTION_INFO_TYPE,
]
handlers: [

Powered by Google App Engine
This is Rietveld 408576698