| 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/handles.h" | 10 #include "src/handles.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 BufferAccess const BufferAccessOf(const Operator* op) WARN_UNUSED_RESULT; | 57 BufferAccess const BufferAccessOf(const Operator* op) WARN_UNUSED_RESULT; |
| 58 | 58 |
| 59 | 59 |
| 60 // An access descriptor for loads/stores of fixed structures like field | 60 // An access descriptor for loads/stores of fixed structures like field |
| 61 // accesses of heap objects. Accesses from either tagged or untagged base | 61 // accesses of heap objects. Accesses from either tagged or untagged base |
| 62 // pointers are supported; untagging is done automatically during lowering. | 62 // pointers are supported; untagging is done automatically during lowering. |
| 63 struct FieldAccess { | 63 struct FieldAccess { |
| 64 BaseTaggedness base_is_tagged; // specifies if the base pointer is tagged. | 64 BaseTaggedness base_is_tagged; // specifies if the base pointer is tagged. |
| 65 int offset; // offset of the field, without tag. | 65 int offset; // offset of the field, without tag. |
| 66 MaybeHandle<Name> name; // debugging only. | 66 const char* name; // debugging only. |
| 67 Type* type; // type of the field. | 67 Type* type; // type of the field. |
| 68 MachineType machine_type; // machine type of the field. | 68 MachineType machine_type; // machine type of the field. |
| 69 | 69 |
| 70 int tag() const { return base_is_tagged == kTaggedBase ? kHeapObjectTag : 0; } | 70 int tag() const { return base_is_tagged == kTaggedBase ? kHeapObjectTag : 0; } |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 bool operator==(FieldAccess const&, FieldAccess const&); | 73 bool operator==(FieldAccess const&, FieldAccess const&); |
| 74 bool operator!=(FieldAccess const&, FieldAccess const&); | 74 bool operator!=(FieldAccess const&, FieldAccess const&); |
| 75 | 75 |
| 76 size_t hash_value(FieldAccess const&); | 76 size_t hash_value(FieldAccess const&); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 Zone* const zone_; | 194 Zone* const zone_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 196 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace compiler | 199 } // namespace compiler |
| 200 } // namespace internal | 200 } // namespace internal |
| 201 } // namespace v8 | 201 } // namespace v8 |
| 202 | 202 |
| 203 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 203 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| OLD | NEW |