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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 2209633002: [Interpreter] Assign feedback slots for binary operations and use them in ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index b205c32b0f37010e21ad06d733269c338b136e82..2a13a5b6dcd96973736b109fdf0057db585bdb9b 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -152,13 +152,16 @@ void BytecodeArrayBuilder::Output(Bytecode bytecode) {
}
BytecodeArrayBuilder& BytecodeArrayBuilder::BinaryOperation(Token::Value op,
- Register reg) {
- Output(BytecodeForBinaryOperation(op), RegisterOperand(reg));
+ Register reg,
+ int feedback_slot) {
+ Output(BytecodeForBinaryOperation(op), RegisterOperand(reg),
+ UnsignedOperand(feedback_slot));
return *this;
}
-BytecodeArrayBuilder& BytecodeArrayBuilder::CountOperation(Token::Value op) {
- Output(BytecodeForCountOperation(op));
+BytecodeArrayBuilder& BytecodeArrayBuilder::CountOperation(Token::Value op,
+ int feedback_slot) {
+ Output(BytecodeForCountOperation(op), UnsignedOperand(feedback_slot));
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698