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

Unified Diff: src/ast.cc

Issue 17444011: Fix to_boolean type feedback for unary and binary ops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index f2ec67f69b7efb899e937089759f2f5d6a6c9cb5..d2e823c34fa9d9cb9966cdfbde20dfd52d2b5cc7 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -428,7 +428,13 @@ void ForInStatement::RecordTypeFeedback(TypeFeedbackOracle* oracle) {
void Expression::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) {
- to_boolean_types_ = oracle->ToBooleanTypes(test_id());
+ to_boolean_types_ |= oracle->ToBooleanTypes(test_id());
+}
+
+
+void Expression::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle,
+ TypeFeedbackId origin) {
Jakob Kummerow 2013/06/24 09:25:07 nit: align arguments with each other
+ to_boolean_types_ |= oracle->ToBooleanTypes(origin);
}

Powered by Google App Engine
This is Rietveld 408576698