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

Unified Diff: runtime/vm/ast_printer.cc

Issue 22640019: Fix for running with --throw_on_javascript_int_overflow: recognize pattern (a << b) & mask and test… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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: runtime/vm/ast_printer.cc
===================================================================
--- runtime/vm/ast_printer.cc (revision 26025)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -164,7 +164,12 @@
void AstPrinter::VisitBinaryOpNode(BinaryOpNode* node) {
- VisitGenericAstNode(node);
+ OS::Print("(%s ", node->Name());
+ node->VisitChildren(this);
+ if (node->has_mask32()) {
+ OS::Print(" & 0x%"Px64"", node->mask32());
+ }
+ OS::Print(")");
}
« runtime/vm/ast.h ('K') | « runtime/vm/ast.h ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698