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

Unified Diff: test/cctest/interpreter/bytecode_expectations/ObjectLiterals.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/ObjectLiterals.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden b/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden
index a05c7273f7ab0bc34c48e6c0d5490e12ae273756..2aefc7f5a004a2e69fd2878de0b9d210064a2f4a 100644
--- a/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden
@@ -49,17 +49,20 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 17
+bytecode array length: 21
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(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(3),
+ /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(1), R(1),
+ /* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(5),
B(Ldar), R(1),
/* 80 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
]
@@ -72,18 +75,21 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 21
+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(CreateObjectLiteral), U8(0), U8(3), U8(1), R(1),
- /* 69 E> */ B(AddSmi), I8(1), R(0), U8(2),
- B(StaNamedPropertySloppy), R(1), U8(1), U8(4),
+ /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(5), U8(1), R(1),
+ /* 69 E> */ B(AddSmi), I8(1), R(0), U8(4),
+ B(StaNamedPropertySloppy), R(1), U8(2), U8(6),
B(Ldar), R(1),
/* 76 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
]
@@ -236,12 +242,14 @@ snippet: "
"
frame size: 6
parameter count: 1
-bytecode array length: 31
+bytecode array length: 35
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(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
+ /* 45 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(1), R(1),
B(LdaSmi), I8(1),
B(Star), R(3),
B(LdaZero),
@@ -253,6 +261,7 @@ bytecodes: [
/* 62 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -287,20 +296,23 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 24
+bytecode array length: 28
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaConstant), U8(1),
B(Star), R(0),
- /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(1),
+ /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(4), U8(35), R(1),
/* 60 E> */ B(ToName), R(2),
B(LdaSmi), I8(1),
B(Star), R(3),
- B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(3),
+ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5),
B(Ldar), R(1),
/* 69 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
FIXED_ARRAY_TYPE,
]
@@ -313,21 +325,24 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 28
+bytecode array length: 32
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaConstant), U8(1),
B(Star), R(0),
- /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(1),
- /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(3),
+ /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(4), U8(1), R(1),
+ /* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(3), U8(5),
/* 68 E> */ B(ToName), R(2),
B(LdaSmi), I8(1),
B(Star), R(3),
- B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5),
+ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(7),
B(Ldar), R(1),
/* 77 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
@@ -341,17 +356,19 @@ snippet: "
"
frame size: 5
parameter count: 1
-bytecode array length: 40
+bytecode array length: 44
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaConstant), U8(1),
B(Star), R(0),
- /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(3), U8(35), R(1),
+ /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(5), U8(35), R(1),
/* 60 E> */ B(ToName), R(2),
B(LdaSmi), I8(1),
B(Star), R(3),
- B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(4),
- B(CreateObjectLiteral), U8(1), U8(2), U8(35), R(4),
+ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(6),
+ B(CreateObjectLiteral), U8(2), U8(4), U8(35), R(4),
B(Mov), R(1), R(2),
B(Mov), R(4), R(3),
B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2),
@@ -359,6 +376,7 @@ bytecodes: [
/* 84 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
FIXED_ARRAY_TYPE,
]
@@ -371,27 +389,29 @@ snippet: "
"
frame size: 6
parameter count: 1
-bytecode array length: 63
+bytecode array length: 67
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaConstant), U8(1),
B(Star), R(0),
- /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(4), U8(35), R(1),
+ /* 50 S> */ B(CreateObjectLiteral), U8(2), U8(6), U8(35), R(1),
/* 60 E> */ B(ToName), R(2),
- B(LdaConstant), U8(2),
- B(Star), R(3),
- B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(5),
B(LdaConstant), U8(3),
+ B(Star), R(3),
+ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(7),
+ B(LdaConstant), U8(4),
B(ToName), R(3),
- B(CreateClosure), U8(4), U8(2), U8(2),
+ B(CreateClosure), U8(5), U8(4), U8(2),
B(Star), R(4),
B(LdaZero),
B(Star), R(5),
B(Mov), R(1), R(2),
B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(2), U8(4),
- B(LdaConstant), U8(3),
+ B(LdaConstant), U8(4),
B(ToName), R(3),
- B(CreateClosure), U8(5), U8(3), U8(2),
+ B(CreateClosure), U8(6), U8(5), U8(2),
B(Star), R(4),
B(LdaZero),
B(Star), R(5),
@@ -400,6 +420,7 @@ bytecodes: [
/* 99 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["n"],
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],

Powered by Google App Engine
This is Rietveld 408576698