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

Unified Diff: test/cctest/interpreter/bytecode_expectations/Delete.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/Delete.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/Delete.golden b/test/cctest/interpreter/bytecode_expectations/Delete.golden
index 08b3f47e139ccd1b2bcf71534b350c52be4237d1..c30d32604354191d29ae3adf43d035dd2d2b6136 100644
--- a/test/cctest/interpreter/bytecode_expectations/Delete.golden
+++ b/test/cctest/interpreter/bytecode_expectations/Delete.golden
@@ -9,18 +9,21 @@ wrap: yes
snippet: "
var a = {x:13, y:14}; return delete a.x;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 14
+bytecode array length: 18
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- B(Mov), R(1), R(0),
- /* 56 S> */ B(LdaConstant), U8(1),
+ /* 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),
+ /* 56 S> */ B(LdaConstant), U8(2),
B(DeletePropertySloppy), R(0),
/* 75 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
@@ -31,18 +34,21 @@ handlers: [
snippet: "
'use strict'; var a = {x:13, y:14}; return delete a.x;
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 14
+bytecode array length: 18
bytecodes: [
/* 30 E> */ B(StackCheck),
- /* 56 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- B(Mov), R(1), R(0),
- /* 70 S> */ B(LdaConstant), U8(1),
+ /* 56 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),
+ /* 70 S> */ B(LdaConstant), U8(2),
B(DeletePropertyStrict), R(0),
/* 89 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
]
@@ -53,18 +59,21 @@ handlers: [
snippet: "
var a = {1:13, 2:14}; return delete a[2];
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 14
+bytecode array length: 18
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),
/* 56 S> */ B(LdaSmi), I8(2),
B(DeletePropertySloppy), R(0),
/* 76 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
]
handlers: [
@@ -74,17 +83,20 @@ handlers: [
snippet: "
var a = 10; return delete a;
"
-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(LdaSmi), I8(10),
+ /* 42 S> */ B(LdaConstant), U8(0),
+ B(Star), R(1),
+ B(LdaSmi), I8(10),
B(Star), R(0),
/* 46 S> */ B(LdaFalse),
/* 63 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
]
handlers: [
]
@@ -96,17 +108,19 @@ snippet: "
(function f1() {return a;});
return delete a[1];
"
-frame size: 2
+frame size: 3
parameter count: 1
-bytecode array length: 27
+bytecode array length: 31
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(0),
/* 30 E> */ B(StackCheck),
- /* 56 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
- B(Ldar), R(1),
+ /* 56 S> */ B(LdaConstant), U8(0),
+ B(CreateObjectLiteral), U8(1), U8(2), U8(1), R(2),
+ B(Star), R(1),
+ B(Ldar), R(2),
/* 56 E> */ B(StaCurrentContextSlot), U8(4),
- /* 64 S> */ B(CreateClosure), U8(1), U8(3), U8(2),
+ /* 64 S> */ B(CreateClosure), U8(2), U8(5), U8(2),
/* 93 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
B(Star), R(1),
B(LdaSmi), I8(1),
@@ -114,6 +128,7 @@ bytecodes: [
/* 113 S> */ B(Return),
]
constant pool: [
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
FIXED_ARRAY_TYPE,
SHARED_FUNCTION_INFO_TYPE,
]

Powered by Google App Engine
This is Rietveld 408576698