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

Unified Diff: src/compiler/access-builder.cc

Issue 763963002: [turbofan] Add checked load/store operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reapply fix. Created 6 years 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/arm/assembler-arm.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/access-builder.cc
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc
index 583bd3aaaf5349f41174bed796642a95cef35d5e..7e798c6f61f64a084eab1c4829a64d3319bc2c94 100644
--- a/src/compiler/access-builder.cc
+++ b/src/compiler/access-builder.cc
@@ -74,8 +74,7 @@ FieldAccess AccessBuilder::ForValue() {
// static
ElementAccess AccessBuilder::ForFixedArrayElement() {
- return {kNoBoundsCheck, kTaggedBase, FixedArray::kHeaderSize, Type::Any(),
- kMachAnyTagged};
+ return {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged};
}
@@ -86,33 +85,25 @@ ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type,
int header_size = is_external ? 0 : FixedTypedArrayBase::kDataOffset;
switch (type) {
case kExternalInt8Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Signed32(),
- kMachInt8};
+ return {taggedness, header_size, Type::Signed32(), kMachInt8};
case kExternalUint8Array:
case kExternalUint8ClampedArray:
- return {kTypedArrayBoundsCheck, taggedness, header_size,
- Type::Unsigned32(), kMachUint8};
+ return {taggedness, header_size, Type::Unsigned32(), kMachUint8};
case kExternalInt16Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Signed32(),
- kMachInt16};
+ return {taggedness, header_size, Type::Signed32(), kMachInt16};
case kExternalUint16Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size,
- Type::Unsigned32(), kMachUint16};
+ return {taggedness, header_size, Type::Unsigned32(), kMachUint16};
case kExternalInt32Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Signed32(),
- kMachInt32};
+ return {taggedness, header_size, Type::Signed32(), kMachInt32};
case kExternalUint32Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size,
- Type::Unsigned32(), kMachUint32};
+ return {taggedness, header_size, Type::Unsigned32(), kMachUint32};
case kExternalFloat32Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(),
- kMachFloat32};
+ return {taggedness, header_size, Type::Number(), kMachFloat32};
case kExternalFloat64Array:
- return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(),
- kMachFloat64};
+ return {taggedness, header_size, Type::Number(), kMachFloat64};
}
UNREACHABLE();
- return {kTypedArrayBoundsCheck, kUntaggedBase, 0, Type::None(), kMachNone};
+ return {kUntaggedBase, 0, Type::None(), kMachNone};
}
} // namespace compiler
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698