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

Unified Diff: src/ast.cc

Issue 850093004: Remove dead TargetCollector code from the parser (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix -Wpedantic error, restoring bogus kInvalid NodeType Created 5 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 | « src/ast.h ('k') | src/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 6329371faa5f01736b49d7f8686ad7f4ceaa373b..45cb3e54105af2dbb9eb95e566655ab1969fad1e 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -417,16 +417,6 @@ void MaterializedLiteral::BuildConstants(Isolate* isolate) {
}
-void TargetCollector::AddTarget(Label* target, Zone* zone) {
- // Add the label to the collector, but discard duplicates.
- int length = targets_.length();
- for (int i = 0; i < length; i++) {
- if (targets_[i] == target) return;
- }
- targets_.Add(target, zone);
-}
-
-
void UnaryOperation::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) {
// TODO(olivf) If this Operation is used in a test context, then the
// expression has a ToBoolean stub and we want to collect the type
« no previous file with comments | « src/ast.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698