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

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

Issue 2263253002: [interpreter] Make the binary op with Smi bytecode handlers collect type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added tests. 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
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 51b61861c3636fa9aa31e5f3a6fe4b594b53dcde..38b6bc49f2b1b25b41c80090747fc38676e78196 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -217,6 +217,12 @@ class BytecodeArrayBuilder final : public ZoneObject {
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg,
int feedback_slot);
+ // Operators (register holds the lhs value, accumulator holds the rhs value).
+ // Type feedback will be recorded in the |feedback_slot|
+ BytecodeArrayBuilder& BinaryOperationSmi(Token::Value binop,
rmcilroy 2016/08/23 13:31:17 Please don't add this as a specific operation, it
epertoso 2016/08/23 14:22:16 Done.
+ int32_t smi_value, Register reg,
+ int feedback_slot);
+
// Count Operators (value stored in accumulator).
// Type feedback will be recorded in the |feedback_slot|
BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot);
@@ -329,6 +335,7 @@ class BytecodeArrayBuilder final : public ZoneObject {
friend class BytecodeRegisterAllocator;
static Bytecode BytecodeForBinaryOperation(Token::Value op);
+ static Bytecode BytecodeForBinaryOperationSmi(Token::Value op);
static Bytecode BytecodeForCountOperation(Token::Value op);
static Bytecode BytecodeForCompareOperation(Token::Value op);
static Bytecode BytecodeForStoreNamedProperty(LanguageMode language_mode);
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698