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

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

Issue 2804813003: [turbofan] Collect and use type feedback on ToNumber. (Closed)
Patch Set: Address Michis feedback. Created 3 years, 8 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 512ad2668a89f31b838fd8bb843326d6bc637ab7..5a2146243c85ce16e5fb1f49fbce47ce0f6ef718 100644
--- a/test/cctest/interpreter/bytecode_expectations/CountOperators.golden
+++ b/test/cctest/interpreter/bytecode_expectations/CountOperators.golden
@@ -31,12 +31,12 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 16
+bytecode array length: 17
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaSmi), I8(1),
B(Star), R(0),
- /* 45 S> */ B(ToNumber), R(1),
+ /* 45 S> */ B(ToNumber), R(1), U8(2),
B(Ldar), R(1),
B(Inc), U8(2),
B(Star), R(0),
@@ -74,12 +74,12 @@ snippet: "
"
frame size: 2
parameter count: 1
-bytecode array length: 16
+bytecode array length: 17
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaSmi), I8(1),
B(Star), R(0),
- /* 45 S> */ B(ToNumber), R(1),
+ /* 45 S> */ B(ToNumber), R(1), U8(2),
B(Ldar), R(1),
B(Dec), U8(2),
B(Star), R(0),
@@ -97,13 +97,13 @@ snippet: "
"
frame size: 3
parameter count: 1
-bytecode array length: 26
+bytecode array length: 27
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
B(Mov), R(1), R(0),
/* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(3),
- B(ToNumber), R(2),
+ B(ToNumber), R(2), U8(7),
B(Ldar), R(2),
B(Inc), U8(7),
/* 66 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(5),
@@ -146,7 +146,7 @@ snippet: "
"
frame size: 5
parameter count: 1
-bytecode array length: 31
+bytecode array length: 32
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 45 S> */ B(LdaConstant), U8(0),
@@ -155,7 +155,7 @@ bytecodes: [
B(Mov), R(2), R(1),
/* 72 S> */ B(Ldar), R(0),
/* 81 E> */ B(LdaKeyedProperty), R(1), U8(3),
- B(ToNumber), R(4),
+ B(ToNumber), R(4), U8(7),
B(Ldar), R(4),
B(Dec), U8(7),
/* 86 E> */ B(StaKeyedPropertySloppy), R(1), R(0), U8(5),
@@ -227,7 +227,7 @@ snippet: "
"
frame size: 3
parameter count: 1
-bytecode array length: 28
+bytecode array length: 29
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
@@ -237,7 +237,7 @@ bytecodes: [
/* 53 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
B(Star), R(0),
/* 78 S> */ B(LdaCurrentContextSlot), U8(4),
- B(ToNumber), R(2),
+ B(ToNumber), R(2), U8(3),
B(Ldar), R(2),
B(Dec), U8(3),
/* 86 E> */ B(StaCurrentContextSlot), U8(4),
@@ -256,7 +256,7 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 28
+bytecode array length: 29
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 44 S> */ B(LdaSmi), I8(1),
@@ -264,7 +264,7 @@ bytecodes: [
/* 55 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9),
B(Star), R(1),
/* 63 S> */ B(Ldar), R(0),
- B(ToNumber), R(3),
+ B(ToNumber), R(3), U8(3),
B(Ldar), R(3),
B(Inc), U8(3),
B(Star), R(0),

Powered by Google App Engine
This is Rietveld 408576698