OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/compiler/operator.h" | 10 #include "src/compiler/operator.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 bool operator==(ElementAccess const&, ElementAccess const&); | 101 bool operator==(ElementAccess const&, ElementAccess const&); |
102 bool operator!=(ElementAccess const&, ElementAccess const&); | 102 bool operator!=(ElementAccess const&, ElementAccess const&); |
103 | 103 |
104 size_t hash_value(ElementAccess const&); | 104 size_t hash_value(ElementAccess const&); |
105 | 105 |
106 std::ostream& operator<<(std::ostream&, ElementAccess const&); | 106 std::ostream& operator<<(std::ostream&, ElementAccess const&); |
107 | 107 |
108 ElementAccess const& ElementAccessOf(const Operator* op) WARN_UNUSED_RESULT; | 108 ElementAccess const& ElementAccessOf(const Operator* op) WARN_UNUSED_RESULT; |
109 | 109 |
| 110 ExternalArrayType ExternalArrayTypeOf(const Operator* op) WARN_UNUSED_RESULT; |
| 111 |
110 enum class CheckFloat64HoleMode : uint8_t { | 112 enum class CheckFloat64HoleMode : uint8_t { |
111 kNeverReturnHole, // Never return the hole (deoptimize instead). | 113 kNeverReturnHole, // Never return the hole (deoptimize instead). |
112 kAllowReturnHole // Allow to return the hole (signaling NaN). | 114 kAllowReturnHole // Allow to return the hole (signaling NaN). |
113 }; | 115 }; |
114 | 116 |
115 size_t hash_value(CheckFloat64HoleMode); | 117 size_t hash_value(CheckFloat64HoleMode); |
116 | 118 |
117 std::ostream& operator<<(std::ostream&, CheckFloat64HoleMode); | 119 std::ostream& operator<<(std::ostream&, CheckFloat64HoleMode); |
118 | 120 |
119 CheckFloat64HoleMode CheckFloat64HoleModeOf(const Operator*) WARN_UNUSED_RESULT; | 121 CheckFloat64HoleMode CheckFloat64HoleModeOf(const Operator*) WARN_UNUSED_RESULT; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 314 |
313 const Operator* LoadField(FieldAccess const&); | 315 const Operator* LoadField(FieldAccess const&); |
314 const Operator* StoreField(FieldAccess const&); | 316 const Operator* StoreField(FieldAccess const&); |
315 | 317 |
316 // load-buffer buffer, offset, length | 318 // load-buffer buffer, offset, length |
317 const Operator* LoadBuffer(BufferAccess); | 319 const Operator* LoadBuffer(BufferAccess); |
318 | 320 |
319 // store-buffer buffer, offset, length, value | 321 // store-buffer buffer, offset, length, value |
320 const Operator* StoreBuffer(BufferAccess); | 322 const Operator* StoreBuffer(BufferAccess); |
321 | 323 |
322 // load-element [base + index], length | 324 // load-element [base + index] |
323 const Operator* LoadElement(ElementAccess const&); | 325 const Operator* LoadElement(ElementAccess const&); |
324 | 326 |
325 // store-element [base + index], length, value | 327 // store-element [base + index], value |
326 const Operator* StoreElement(ElementAccess const&); | 328 const Operator* StoreElement(ElementAccess const&); |
327 | 329 |
| 330 // load-typed-element buffer, [base + external + index] |
| 331 const Operator* LoadTypedElement(ExternalArrayType const&); |
| 332 |
| 333 // store-typed-element buffer, [base + external + index], value |
| 334 const Operator* StoreTypedElement(ExternalArrayType const&); |
| 335 |
328 private: | 336 private: |
329 Zone* zone() const { return zone_; } | 337 Zone* zone() const { return zone_; } |
330 | 338 |
331 const SimplifiedOperatorGlobalCache& cache_; | 339 const SimplifiedOperatorGlobalCache& cache_; |
332 Zone* const zone_; | 340 Zone* const zone_; |
333 | 341 |
334 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 342 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
335 }; | 343 }; |
336 | 344 |
337 } // namespace compiler | 345 } // namespace compiler |
338 } // namespace internal | 346 } // namespace internal |
339 } // namespace v8 | 347 } // namespace v8 |
340 | 348 |
341 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 349 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |