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

Unified Diff: test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.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/LetVariableContextSlot.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
index 5d10939959b8c67451a591736d781948dd9a679d..24977b728b60fb1293c6f1337fb6d95255b87041 100644
--- a/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
+++ b/test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden
@@ -9,9 +9,9 @@ wrap: yes
snippet: "
let x = 10; function f1() {return x;}
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 20
+bytecode array length: 24
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
@@ -20,13 +20,16 @@ bytecodes: [
B(CreateClosure), U8(0), U8(2), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(10),
+ /* 42 S> */ B(LdaConstant), U8(1),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
B(LdaUndefined),
/* 72 S> */ B(Return),
]
constant pool: [
SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -35,9 +38,9 @@ handlers: [
snippet: "
let x = 10; function f1() {return x;} return x;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 21
+bytecode array length: 25
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
@@ -46,13 +49,16 @@ bytecodes: [
B(CreateClosure), U8(0), U8(2), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(10),
+ /* 42 S> */ B(LdaConstant), U8(1),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
/* 72 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
/* 82 S> */ B(Return),
]
constant pool: [
SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]
@@ -61,9 +67,9 @@ handlers: [
snippet: "
let x = (x = 20); function f1() {return x;}
"
-frame size: 4
+frame size: 6
parameter count: 1
-bytecode array length: 39
+bytecode array length: 47
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
@@ -72,14 +78,18 @@ bytecodes: [
B(CreateClosure), U8(0), U8(2), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
- /* 45 S> */ B(LdaSmi), I8(20),
+ /* 45 S> */ B(LdaConstant), U8(1),
B(Star), R(2),
+ B(LdaConstant), U8(1),
+ B(Star), R(3),
+ B(LdaSmi), I8(20),
+ B(Star), R(4),
B(LdaCurrentContextSlot), U8(4),
B(JumpIfNotHole), U8(11),
B(LdaConstant), U8(1),
- B(Star), R(3),
- /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
- B(Ldar), R(2),
+ B(Star), R(5),
+ /* 45 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
+ B(Ldar), R(4),
B(StaCurrentContextSlot), U8(4),
/* 45 E> */ B(StaCurrentContextSlot), U8(4),
B(LdaUndefined),
@@ -96,9 +106,9 @@ handlers: [
snippet: "
let x = 10; x = 20; function f1() {return x;}
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 24
+bytecode array length: 32
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
@@ -107,15 +117,20 @@ bytecodes: [
B(CreateClosure), U8(0), U8(2), U8(2),
B(Star), R(0),
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(LdaSmi), I8(10),
+ /* 42 S> */ B(LdaConstant), U8(1),
+ B(Star), R(2),
+ B(LdaSmi), I8(10),
/* 42 E> */ B(StaCurrentContextSlot), U8(4),
- /* 46 S> */ B(LdaSmi), I8(20),
+ /* 46 S> */ B(LdaConstant), U8(1),
+ B(Star), R(2),
+ B(LdaSmi), I8(20),
/* 48 E> */ B(StaCurrentContextSlot), U8(4),
B(LdaUndefined),
/* 80 S> */ B(Return),
]
constant pool: [
SHARED_FUNCTION_INFO_TYPE,
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
handlers: [
]

Powered by Google App Engine
This is Rietveld 408576698