| 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/type-hints.h" | 11 #include "src/compiler/type-hints.h" |
| 11 #include "src/handles.h" | 12 #include "src/handles.h" |
| 12 #include "src/machine-type.h" | 13 #include "src/machine-type.h" |
| 13 #include "src/objects.h" | 14 #include "src/objects.h" |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 | 18 |
| 18 // Forward declarations. | 19 // Forward declarations. |
| 19 class Type; | 20 class Type; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 73 |
| 73 bool operator==(FieldAccess const&, FieldAccess const&); | 74 bool operator==(FieldAccess const&, FieldAccess const&); |
| 74 bool operator!=(FieldAccess const&, FieldAccess const&); | 75 bool operator!=(FieldAccess const&, FieldAccess const&); |
| 75 | 76 |
| 76 size_t hash_value(FieldAccess const&); | 77 size_t hash_value(FieldAccess const&); |
| 77 | 78 |
| 78 std::ostream& operator<<(std::ostream&, FieldAccess const&); | 79 std::ostream& operator<<(std::ostream&, FieldAccess const&); |
| 79 | 80 |
| 80 FieldAccess const& FieldAccessOf(const Operator* op) WARN_UNUSED_RESULT; | 81 FieldAccess const& FieldAccessOf(const Operator* op) WARN_UNUSED_RESULT; |
| 81 | 82 |
| 83 template <> |
| 84 void Operator1<FieldAccess>::PrintParameter(std::ostream& os, |
| 85 PrintVerbosity verbose) const; |
| 82 | 86 |
| 83 // An access descriptor for loads/stores of indexed structures like characters | 87 // An access descriptor for loads/stores of indexed structures like characters |
| 84 // in strings or off-heap backing stores. Accesses from either tagged or | 88 // in strings or off-heap backing stores. Accesses from either tagged or |
| 85 // untagged base pointers are supported; untagging is done automatically during | 89 // untagged base pointers are supported; untagging is done automatically during |
| 86 // lowering. | 90 // lowering. |
| 87 struct ElementAccess { | 91 struct ElementAccess { |
| 88 BaseTaggedness base_is_tagged; // specifies if the base pointer is tagged. | 92 BaseTaggedness base_is_tagged; // specifies if the base pointer is tagged. |
| 89 int header_size; // size of the header, without tag. | 93 int header_size; // size of the header, without tag. |
| 90 Type* type; // type of the element. | 94 Type* type; // type of the element. |
| 91 MachineType machine_type; // machine type of the element. | 95 MachineType machine_type; // machine type of the element. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 Zone* const zone_; | 299 Zone* const zone_; |
| 296 | 300 |
| 297 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 301 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 } // namespace compiler | 304 } // namespace compiler |
| 301 } // namespace internal | 305 } // namespace internal |
| 302 } // namespace v8 | 306 } // namespace v8 |
| 303 | 307 |
| 304 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 308 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| OLD | NEW |