Ensure escape analysis preserves boxed HeapNumber.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/23940005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16755 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 03d3ef80
...@@ -1617,9 +1617,10 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() { ...@@ -1617,9 +1617,10 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() {
Handle<Map> map = Handle<Map>::cast(MaterializeNextValue()); Handle<Map> map = Handle<Map>::cast(MaterializeNextValue());
switch (map->instance_type()) { switch (map->instance_type()) {
case HEAP_NUMBER_TYPE: { case HEAP_NUMBER_TYPE: {
Handle<HeapNumber> number = Handle<HeapNumber> object = isolate_->factory()->NewHeapNumber(0.0);
Handle<HeapNumber>::cast(MaterializeNextValue()); materialized_objects_->Add(object);
materialized_objects_->Add(number); Handle<Object> number = MaterializeNextValue();
object->set_value(number->Number());
materialization_value_index_ += kDoubleSize / kPointerSize - 1; materialization_value_index_ += kDoubleSize / kPointerSize - 1;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment