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

Unified Diff: src/compiler/bytecode-graph-builder.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/compiler/bytecode-graph-builder.cc
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
index fa838da3c16f955f00a960fed2d544c75e938041..3a951bde66c6ddcc14d6ac937b2ab4dbba4c692f 100644
--- a/src/compiler/bytecode-graph-builder.cc
+++ b/src/compiler/bytecode-graph-builder.cc
@@ -806,16 +806,18 @@ void BytecodeGraphBuilder::VisitStaDataPropertyInLiteral() {
void BytecodeGraphBuilder::VisitCollectTypeProfile() {
PrepareEagerCheckpoint();
- Node* name =
+ Node* position =
environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0));
+ Node* name =
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(1));
Node* value = environment()->LookupAccumulator();
- Node* index = jsgraph()->Constant(bytecode_iterator().GetIndexOperand(1));
+ Node* index = jsgraph()->Constant(bytecode_iterator().GetIndexOperand(2));
Node* vector = jsgraph()->Constant(feedback_vector());
const Operator* op = javascript()->CallRuntime(Runtime::kCollectTypeProfile);
- Node* node = NewNode(op, name, value, vector, index);
+ Node* node = NewNode(op, position, name, value, vector, index);
environment()->RecordAfterState(node, Environment::kAttachFrameState);
}

Powered by Google App Engine
This is Rietveld 408576698