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

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

Issue 1783483002: [interpreter] Add support for scalable operands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase onto 3c1dc424d3f2f651ad Created 4 years, 9 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 018fda23e29e90e87a76e149f92e2c07caccea0f..c8330996aa0ffb307e653bff88a8c9ae4e48c40b 100644
--- a/src/interpreter/constant-array-builder.cc
+++ b/src/interpreter/constant-array-builder.cc
@@ -58,6 +58,8 @@ ConstantArrayBuilder::ConstantArrayBuilder(Isolate* isolate, Zone* zone)
new (zone) ConstantArraySlice(zone, 0, k8BitCapacity, OperandSize::kByte);
idx_slice_[1] = new (zone) ConstantArraySlice(
zone, k8BitCapacity, k16BitCapacity, OperandSize::kShort);
+ idx_slice_[2] = new (zone) ConstantArraySlice(
+ zone, k8BitCapacity, k16BitCapacity, OperandSize::kQuad);
mythria 2016/03/16 13:32:11 I think this should go from k16BitCapacity to k32B
oth 2016/03/17 13:48:38 Done.
}
size_t ConstantArrayBuilder::size() const {
@@ -164,6 +166,9 @@ ConstantArrayBuilder::OperandSizeToSlice(OperandSize operand_size) const {
case OperandSize::kShort:
slice = idx_slice_[1];
break;
+ case OperandSize::kQuad:
+ slice = idx_slice_[2];
+ break;
}
DCHECK(slice->operand_size() == operand_size);
return slice;

Powered by Google App Engine
This is Rietveld 408576698