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

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

Issue 2203693002: [turbofan] Introduce initial support for TypedArrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5254
Patch Set: Fix Retain Created 4 years, 5 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/compiler/simplified-lowering.cc ('k') | src/compiler/simplified-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.h
diff --git a/src/compiler/simplified-operator.h b/src/compiler/simplified-operator.h
index 656e38b1fa23aea279d27b63d3df45036f401b5b..4ddd49b6209e2f10d3276347804b71fe1325cd41 100644
--- a/src/compiler/simplified-operator.h
+++ b/src/compiler/simplified-operator.h
@@ -107,6 +107,8 @@ std::ostream& operator<<(std::ostream&, ElementAccess const&);
ElementAccess const& ElementAccessOf(const Operator* op) WARN_UNUSED_RESULT;
+ExternalArrayType ExternalArrayTypeOf(const Operator* op) WARN_UNUSED_RESULT;
+
enum class CheckFloat64HoleMode : uint8_t {
kNeverReturnHole, // Never return the hole (deoptimize instead).
kAllowReturnHole // Allow to return the hole (signaling NaN).
@@ -319,12 +321,18 @@ class SimplifiedOperatorBuilder final : public ZoneObject {
// store-buffer buffer, offset, length, value
const Operator* StoreBuffer(BufferAccess);
- // load-element [base + index], length
+ // load-element [base + index]
const Operator* LoadElement(ElementAccess const&);
- // store-element [base + index], length, value
+ // store-element [base + index], value
const Operator* StoreElement(ElementAccess const&);
+ // load-typed-element buffer, [base + external + index]
+ const Operator* LoadTypedElement(ExternalArrayType const&);
+
+ // store-typed-element buffer, [base + external + index], value
+ const Operator* StoreTypedElement(ExternalArrayType const&);
+
private:
Zone* zone() const { return zone_; }
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/simplified-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698