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

Unified Diff: runtime/vm/object.h

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/object.h
===================================================================
--- runtime/vm/object.h (revision 26093)
+++ runtime/vm/object.h (working copy)
@@ -4144,7 +4144,10 @@
// Returns a canonical Integer object allocated in the old gen space.
static RawInteger* NewCanonical(const String& str);
- static RawInteger* New(int64_t value, Heap::Space space = Heap::kNew);
+ // Do not throw JavascriptIntegerOverflow if 'silent' is true.
+ static RawInteger* New(int64_t value,
+ Heap::Space space = Heap::kNew,
+ const bool silent = false);
virtual double AsDoubleValue() const;
virtual int64_t AsInt64Value() const;
@@ -4219,7 +4222,9 @@
return (value >= kMinValue) && (value <= kMaxValue);
}
- RawInteger* ShiftOp(Token::Kind kind, const Smi& other) const;
+ RawInteger* ShiftOp(Token::Kind kind,
+ const Smi& other,
+ const bool silent = false) const;
void operator=(RawSmi* value) {
raw_ = value;

Powered by Google App Engine
This is Rietveld 408576698