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

Unified Diff: runtime/vm/intermediate_language.h

Issue 21885003: Enables unboxed mints in ia32 javascript int compatability mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 25734)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -14,6 +14,8 @@
namespace dart {
+DECLARE_FLAG(bool, throw_on_javascript_int_overflow);
+
class BitVector;
class BlockEntryInstr;
class BufferFormatter;
@@ -5807,7 +5809,8 @@
virtual void PrintOperandsTo(BufferFormatter* f) const;
virtual bool CanDeoptimize() const {
- return (op_kind() == Token::kADD) || (op_kind() == Token::kSUB);
+ return FLAG_throw_on_javascript_int_overflow ||
+ (op_kind() == Token::kADD) || (op_kind() == Token::kSUB);
}
virtual Representation representation() const {
@@ -5921,7 +5924,9 @@
virtual void PrintOperandsTo(BufferFormatter* f) const;
- virtual bool CanDeoptimize() const { return false; }
+ virtual bool CanDeoptimize() const {
+ return FLAG_throw_on_javascript_int_overflow;
+ }
virtual Representation representation() const {
return kUnboxedMint;

Powered by Google App Engine
This is Rietveld 408576698