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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 353513002: Use range information for optimizing integer boxing and fix bug in range analysis. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/deferred_objects.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 37654)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -706,7 +706,7 @@
int32_t hi_value = deopt_context->RegisterValue(hi_reg_);
int64_t value = Utils::LowHighTo64Bits(lo_value, hi_value);
*reinterpret_cast<RawSmi**>(dest_addr) = Smi::New(0);
- if (Smi::IsValid64(value)) {
+ if (Smi::IsValid(value)) {
*dest_addr = reinterpret_cast<intptr_t>(
Smi::New(static_cast<intptr_t>(value)));
} else {
@@ -768,7 +768,7 @@
deopt_context->GetSourceFrameAddressAt(hi_source_index));
int64_t value = Utils::LowHighTo64Bits(*lo_source_addr, *hi_source_addr);
*reinterpret_cast<RawSmi**>(dest_addr) = Smi::New(0);
- if (Smi::IsValid64(value)) {
+ if (Smi::IsValid(value)) {
*dest_addr = reinterpret_cast<intptr_t>(
Smi::New(static_cast<intptr_t>(value)));
} else {
@@ -847,7 +847,7 @@
value = Utils::LowHighTo64Bits(slot_value, reg_value);
}
*reinterpret_cast<RawSmi**>(dest_addr) = Smi::New(0);
- if (Smi::IsValid64(value)) {
+ if (Smi::IsValid(value)) {
*dest_addr = reinterpret_cast<intptr_t>(
Smi::New(static_cast<intptr_t>(value)));
} else {
« no previous file with comments | « runtime/vm/deferred_objects.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698