| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 std::ostream& operator<<(std::ostream&, CheckForMinusZeroMode); | 141 std::ostream& operator<<(std::ostream&, CheckForMinusZeroMode); |
| 142 | 142 |
| 143 CheckForMinusZeroMode CheckMinusZeroModeOf(const Operator*) WARN_UNUSED_RESULT; | 143 CheckForMinusZeroMode CheckMinusZeroModeOf(const Operator*) WARN_UNUSED_RESULT; |
| 144 | 144 |
| 145 // A descriptor for elements kind transitions. | 145 // A descriptor for elements kind transitions. |
| 146 enum class ElementsTransition : uint8_t { | 146 enum class ElementsTransition : uint8_t { |
| 147 kFastTransition, // simple transition, just updating the map. | 147 kFastTransition, // simple transition, just updating the map. |
| 148 kSlowTransition // full transition, round-trip to the runtime. | 148 kSlowTransition // full transition, round-trip to the runtime. |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 size_t hash_value(ElementsTransition); | |
| 152 | |
| 153 std::ostream& operator<<(std::ostream&, ElementsTransition); | 151 std::ostream& operator<<(std::ostream&, ElementsTransition); |
| 154 | 152 |
| 155 ElementsTransition ElementsTransitionOf(const Operator* op) WARN_UNUSED_RESULT; | 153 ElementsTransition ElementsTransitionOf(const Operator* op) WARN_UNUSED_RESULT; |
| 156 | 154 |
| 157 BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op); | 155 BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op); |
| 158 | 156 |
| 159 CompareOperationHints::Hint CompareOperationHintOf(const Operator* op); | 157 CompareOperationHints::Hint CompareOperationHintOf(const Operator* op); |
| 160 | 158 |
| 161 // Interface for building simplified operators, which represent the | 159 // Interface for building simplified operators, which represent the |
| 162 // medium-level operations of V8, including adding numbers, allocating objects, | 160 // medium-level operations of V8, including adding numbers, allocating objects, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 const Operator* CheckFloat64Hole(CheckFloat64HoleMode); | 304 const Operator* CheckFloat64Hole(CheckFloat64HoleMode); |
| 307 const Operator* CheckTaggedHole(CheckTaggedHoleMode); | 305 const Operator* CheckTaggedHole(CheckTaggedHoleMode); |
| 308 | 306 |
| 309 const Operator* ObjectIsCallable(); | 307 const Operator* ObjectIsCallable(); |
| 310 const Operator* ObjectIsNumber(); | 308 const Operator* ObjectIsNumber(); |
| 311 const Operator* ObjectIsReceiver(); | 309 const Operator* ObjectIsReceiver(); |
| 312 const Operator* ObjectIsSmi(); | 310 const Operator* ObjectIsSmi(); |
| 313 const Operator* ObjectIsString(); | 311 const Operator* ObjectIsString(); |
| 314 const Operator* ObjectIsUndetectable(); | 312 const Operator* ObjectIsUndetectable(); |
| 315 | 313 |
| 316 // ensure-writable-fast-elements object, elements | |
| 317 const Operator* EnsureWritableFastElements(); | |
| 318 | |
| 319 // transition-elements-kind object, from-map, to-map | 314 // transition-elements-kind object, from-map, to-map |
| 320 const Operator* TransitionElementsKind(ElementsTransition transition); | 315 const Operator* TransitionElementsKind(ElementsTransition transition); |
| 321 | 316 |
| 322 const Operator* Allocate(PretenureFlag pretenure = NOT_TENURED); | 317 const Operator* Allocate(PretenureFlag pretenure = NOT_TENURED); |
| 323 | 318 |
| 324 const Operator* LoadField(FieldAccess const&); | 319 const Operator* LoadField(FieldAccess const&); |
| 325 const Operator* StoreField(FieldAccess const&); | 320 const Operator* StoreField(FieldAccess const&); |
| 326 | 321 |
| 327 // load-buffer buffer, offset, length | 322 // load-buffer buffer, offset, length |
| 328 const Operator* LoadBuffer(BufferAccess); | 323 const Operator* LoadBuffer(BufferAccess); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 349 Zone* const zone_; | 344 Zone* const zone_; |
| 350 | 345 |
| 351 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 346 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
| 352 }; | 347 }; |
| 353 | 348 |
| 354 } // namespace compiler | 349 } // namespace compiler |
| 355 } // namespace internal | 350 } // namespace internal |
| 356 } // namespace v8 | 351 } // namespace v8 |
| 357 | 352 |
| 358 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 353 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| OLD | NEW |