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

Unified Diff: src/ast/ast.h

Issue 2650853008: [TypeFeedbackVector] Remove unnecessary Parameters metadata (Closed)
Patch Set: compilation failure. Created 3 years, 11 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 | « no previous file | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 5ec8b493d9aebfd4d779e9b9f189d5975b007ef4..768527f5ad42ae0a37d3a3f08f572c42795dd839 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2603,10 +2603,7 @@ class FunctionLiteral final : public Expression {
void AssignFeedbackVectorSlots(FeedbackVectorSpec* spec,
FeedbackVectorSlotCache* cache) {
- // The + 1 is because we need an array with room for the literals
- // as well as the feedback vector.
- literal_feedback_slot_ =
- spec->AddCreateClosureSlot(materialized_literal_count_ + 1);
+ literal_feedback_slot_ = spec->AddCreateClosureSlot();
}
FeedbackVectorSlot LiteralFeedbackSlot() const {
@@ -2873,12 +2870,9 @@ class NativeFunctionLiteral final : public Expression {
void AssignFeedbackVectorSlots(FeedbackVectorSpec* spec,
FeedbackVectorSlotCache* cache) {
- // 0 is a magic number here. It means we are holding the literals
- // array for a native function literal, which needs to be
- // the empty literals array.
// TODO(mvstanton): The FeedbackVectorSlotCache can be adapted
// to always return the same slot for this case.
- literal_feedback_slot_ = spec->AddCreateClosureSlot(0);
+ literal_feedback_slot_ = spec->AddCreateClosureSlot();
}
private:
« no previous file with comments | « no previous file | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698