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

Unified Diff: src/deoptimizer.cc

Issue 148573005: A64: Synchronize with r16249. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | « src/d8.cc ('k') | src/effects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 6c718b9856ebf5804c0963ba04afcf8463da8acd..40dec5efd36d97c71796ce41578aa5692781b1a7 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -1675,7 +1675,8 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() {
arguments->set_elements(*array);
materialized_objects_->Add(arguments);
for (int i = 0; i < length; ++i) {
- array->set(i, *MaterializeNextValue());
+ Handle<Object> value = MaterializeNextValue();
+ array->set(i, *value);
}
} else {
// Dispatch on the instance type of the object to be materialized.
@@ -1692,10 +1693,13 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() {
Handle<JSObject> object =
isolate_->factory()->NewJSObjectFromMap(map, NOT_TENURED, false);
materialized_objects_->Add(object);
- object->set_properties(FixedArray::cast(*MaterializeNextValue()));
- object->set_elements(FixedArray::cast(*MaterializeNextValue()));
+ Handle<Object> properties = MaterializeNextValue();
+ Handle<Object> elements = MaterializeNextValue();
+ object->set_properties(FixedArray::cast(*properties));
+ object->set_elements(FixedArray::cast(*elements));
for (int i = 0; i < length - 3; ++i) {
- object->FastPropertyAtPut(i, *MaterializeNextValue());
+ Handle<Object> value = MaterializeNextValue();
+ object->FastPropertyAtPut(i, *value);
}
break;
}
« no previous file with comments | « src/d8.cc ('k') | src/effects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698