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