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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 15743017: Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 23032)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -28,6 +28,7 @@
DECLARE_FLAG(bool, print_scopes);
DECLARE_FLAG(bool, enable_type_checks);
DECLARE_FLAG(bool, eliminate_type_checks);
+DECLARE_FLAG(bool, throw_on_53bit_overflow);
FlowGraphCompiler::~FlowGraphCompiler() {
@@ -42,7 +43,8 @@
bool FlowGraphCompiler::SupportsUnboxedMints() {
// Support unboxed mints when SSE 4.1 is available.
- return FLAG_unbox_mints && CPUFeatures::sse4_1_supported();
+ return FLAG_unbox_mints && CPUFeatures::sse4_1_supported() &&
+ !FLAG_throw_on_53bit_overflow;
}
« runtime/lib/typed_data.cc ('K') | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698