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

Unified Diff: test/cctest/interpreter/bytecode_expectations/LetVariable.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/LetVariable.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/LetVariable.golden b/test/cctest/interpreter/bytecode_expectations/LetVariable.golden
index 60f236f17acdc106e2d7ba5daed284e09f5c0aa4..595f641e1cb4f843937d0ea3be39f6a51e0d3f8c 100644
--- a/test/cctest/interpreter/bytecode_expectations/LetVariable.golden
+++ b/test/cctest/interpreter/bytecode_expectations/LetVariable.golden
@@ -9,19 +9,22 @@ wrap: yes
snippet: "
let x = 10;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 10
+bytecode array length: 14
bytecodes: [
B(LdaTheHole),
B(Star), R(0),
/* 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),
B(LdaUndefined),
/* 46 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -30,19 +33,22 @@ handlers: [
snippet: "
let x = 10; return x;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 10
+bytecode array length: 14
bytecodes: [
B(LdaTheHole),
B(Star), R(0),
/* 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(Nop),
/* 56 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -51,22 +57,26 @@ handlers: [
snippet: "
let x = (x = 20);
"
-frame size: 3
+frame size: 5
parameter count: 1
-bytecode array length: 29
+bytecode array length: 37
bytecodes: [
B(LdaTheHole),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
- /* 45 S> */ B(LdaSmi), I8(20),
+ /* 45 S> */ B(LdaConstant), U8(0),
B(Star), R(1),
+ B(LdaConstant), U8(0),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
+ B(Star), R(3),
B(Ldar), R(0),
B(JumpIfNotHole), U8(11),
B(LdaConstant), U8(0),
- B(Star), R(2),
- /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
- B(Mov), R(1), R(0),
- B(Mov), R(1), R(0),
+ B(Star), R(4),
+ /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
+ B(Mov), R(3), R(0),
+ B(Mov), R(3), R(0),
B(LdaUndefined),
/* 52 S> */ B(Return),
]
@@ -80,21 +90,26 @@ handlers: [
snippet: "
let x = 10; x = 20;
"
-frame size: 1
+frame size: 2
parameter count: 1
-bytecode array length: 14
+bytecode array length: 22
bytecodes: [
B(LdaTheHole),
B(Star), R(0),
/* 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(20),
+ /* 46 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(20),
B(Star), R(0),
B(LdaUndefined),
/* 54 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698