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

Unified Diff: test/cctest/interpreter/bytecode_expectations/CountOperators.golden

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Decouple a test from implementation. Created 4 years, 7 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/CountOperators.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/CountOperators.golden b/test/cctest/interpreter/bytecode_expectations/CountOperators.golden
index a11e7cac5c788a7515f83d2d0d1fd581e8c756a6..69be6ffd8ed6cf2ad5156c9d453c99bf8890d329 100644
--- a/test/cctest/interpreter/bytecode_expectations/CountOperators.golden
+++ b/test/cctest/interpreter/bytecode_expectations/CountOperators.golden
@@ -99,18 +99,17 @@ snippet: "
"
frame size: 3
parameter count: 1
-bytecode array length: 26
+bytecode array length: 24
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
B(Star), R(1),
B(Star), R(0),
- /* 54 S> */ B(Star), R(1),
- B(LdaNamedProperty), R(1), U8(1), U8(1),
+ /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1),
B(ToNumber),
B(Star), R(2),
B(Inc),
- /* 66 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(3),
+ /* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3),
B(Ldar), R(2),
/* 70 S> */ B(Return),
]
@@ -127,16 +126,15 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 21
+bytecode array length: 19
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1),
B(Star), R(1),
B(Star), R(0),
- /* 54 S> */ B(Star), R(1),
- B(LdaNamedProperty), R(1), U8(1), U8(1),
+ /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(1),
B(Dec),
- /* 65 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(3),
+ /* 65 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(3),
/* 70 S> */ B(Return),
]
constant pool: [
@@ -152,7 +150,7 @@ snippet: "
"
frame size: 5
parameter count: 1
-bytecode array length: 33
+bytecode array length: 30
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 45 S> */ B(LdaConstant), U8(0),
@@ -160,14 +158,13 @@ bytecodes: [
/* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1),
B(Star), R(2),
B(Star), R(1),
- /* 72 S> */ B(Star), R(2),
+ /* 72 S> */ B(Nop),
/* 81 E> */ B(Ldar), R(0),
- B(Star), R(3),
- B(LdaKeyedProperty), R(2), U8(1),
+ B(LdaKeyedProperty), R(1), U8(1),
B(ToNumber),
B(Star), R(4),
B(Dec),
- /* 86 E> */ B(StaKeyedPropertySloppy), R(2), R(3), U8(3),
+ /* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3),
B(Ldar), R(4),
/* 90 S> */ B(Return),
]
@@ -182,9 +179,9 @@ handlers: [
snippet: "
var name = 'var'; var a = { val: 1 }; return ++a[name];
"
-frame size: 4
+frame size: 3
parameter count: 1
-bytecode array length: 28
+bytecode array length: 25
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 45 S> */ B(LdaConstant), U8(0),
@@ -192,12 +189,11 @@ bytecodes: [
/* 60 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1),
B(Star), R(2),
B(Star), R(1),
- /* 72 S> */ B(Star), R(2),
+ /* 72 S> */ B(Nop),
/* 83 E> */ B(Ldar), R(0),
- B(Star), R(3),
- B(LdaKeyedProperty), R(2), U8(1),
+ B(LdaKeyedProperty), R(1), U8(1),
B(Inc),
- /* 87 E> */ B(StaKeyedPropertySloppy), R(2), R(3), U8(3),
+ /* 87 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(3),
/* 90 S> */ B(Return),
]
constant pool: [
@@ -268,21 +264,20 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 28
+bytecode array length: 26
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 44 S> */ B(LdaSmi), U8(1),
B(Star), R(0),
/* 55 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
B(Star), R(1),
- /* 63 S> */ B(Star), R(2),
- B(Ldar), R(0),
+ /* 63 S> */ B(Ldar), R(0),
B(ToNumber),
B(Star), R(3),
B(Inc),
/* 75 E> */ B(Star), R(0),
B(LdaSmi), U8(2),
- /* 79 E> */ B(StaKeyedPropertySloppy), R(2), R(3), U8(1),
+ /* 79 E> */ B(StaKeyedPropertySloppy), R(1), R(3), U8(1),
/* 84 S> */ B(Return),
]
constant pool: [

Powered by Google App Engine
This is Rietveld 408576698