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

Unified Diff: src/interpreter/constant-array-builder.cc

Issue 1608693004: [interpreter] Simplify ConstantArrayBuilder interface a bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_int-2
Patch Set: Created 4 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
Index: src/interpreter/constant-array-builder.cc
diff --git a/src/interpreter/constant-array-builder.cc b/src/interpreter/constant-array-builder.cc
index 2586e1ff4d5c443ce53db6782266d2a15f620cd9..a4a52c669813ecfb8e3fb7d9c4119c76bbef3807 100644
--- a/src/interpreter/constant-array-builder.cc
+++ b/src/interpreter/constant-array-builder.cc
@@ -86,9 +86,9 @@ Handle<Object> ConstantArrayBuilder::At(size_t index) const {
}
-Handle<FixedArray> ConstantArrayBuilder::ToFixedArray(Factory* factory) const {
- Handle<FixedArray> fixed_array =
- factory->NewFixedArray(static_cast<int>(size()), PretenureFlag::TENURED);
+Handle<FixedArray> ConstantArrayBuilder::ToFixedArray() const {
+ Handle<FixedArray> fixed_array = isolate_->factory()->NewFixedArray(
+ static_cast<int>(size()), PretenureFlag::TENURED);
for (int i = 0; i < fixed_array->length(); i++) {
fixed_array->set(i, *At(static_cast<size_t>(i)));
}

Powered by Google App Engine
This is Rietveld 408576698