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

Unified Diff: src/interpreter/interpreter.cc

Issue 2755973002: [type profile] Collect return types. (Closed)
Patch Set: Clean up. Created 3 years, 9 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/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index 6af06fddbb74311de367d9aaca53e09592a8e0c6..64c94f63720b8a311fa3fc1f9b5523210574e2b8 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -1046,14 +1046,16 @@ void Interpreter::DoStaDataPropertyInLiteral(InterpreterAssembler* assembler) {
}
void Interpreter::DoCollectTypeProfile(InterpreterAssembler* assembler) {
- Node* name = __ LoadRegister(__ BytecodeOperandReg(0));
+ Node* position = __ LoadRegister(__ BytecodeOperandReg(0));
+ Node* name = __ LoadRegister(__ BytecodeOperandReg(1));
+
Node* value = __ GetAccumulator();
- Node* vector_index = __ SmiTag(__ BytecodeOperandIdx(1));
+ Node* vector_index = __ SmiTag(__ BytecodeOperandIdx(2));
Node* feedback_vector = __ LoadFeedbackVector();
Node* context = __ GetContext();
- __ CallRuntime(Runtime::kCollectTypeProfile, context, name, value,
+ __ CallRuntime(Runtime::kCollectTypeProfile, context, position, name, value,
feedback_vector, vector_index);
__ Dispatch();
}

Powered by Google App Engine
This is Rietveld 408576698