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

Unified Diff: src/compiler/simplified-operator.cc

Issue 794013004: [turbofan] Correctify lowering of Uint8ClampedArray buffer access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typed lowering. 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/compiler/js-typed-lowering.cc ('k') | test/mjsunit/compiler/regress-444508.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 4900048829c889c7dacbaf18259817f6dcda0472..e082a4b30a827f68001b7c5772e5d660cf176cd0 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -28,6 +28,7 @@ std::ostream& operator<<(std::ostream& os, BaseTaggedness base_taggedness) {
MachineType BufferAccess::machine_type() const {
switch (external_array_type_) {
case kExternalUint8Array:
+ case kExternalUint8ClampedArray:
return kMachUint8;
case kExternalInt8Array:
return kMachInt8;
@@ -43,8 +44,6 @@ MachineType BufferAccess::machine_type() const {
return kMachFloat32;
case kExternalFloat64Array:
return kMachFloat64;
- case kExternalUint8ClampedArray:
- break;
}
UNREACHABLE();
return kMachNone;
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/mjsunit/compiler/regress-444508.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698