| 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/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58 V8_EXPORT_PRIVATE BufferAccess const BufferAccessOf(const Operator* op) | 58 V8_EXPORT_PRIVATE BufferAccess const BufferAccessOf(const Operator* op) | 
| 59     WARN_UNUSED_RESULT; | 59     WARN_UNUSED_RESULT; | 
| 60 | 60 | 
| 61 // An access descriptor for loads/stores of fixed structures like field | 61 // An access descriptor for loads/stores of fixed structures like field | 
| 62 // accesses of heap objects. Accesses from either tagged or untagged base | 62 // accesses of heap objects. Accesses from either tagged or untagged base | 
| 63 // pointers are supported; untagging is done automatically during lowering. | 63 // pointers are supported; untagging is done automatically during lowering. | 
| 64 struct FieldAccess { | 64 struct FieldAccess { | 
| 65   BaseTaggedness base_is_tagged;  // specifies if the base pointer is tagged. | 65   BaseTaggedness base_is_tagged;  // specifies if the base pointer is tagged. | 
| 66   int offset;                     // offset of the field, without tag. | 66   int offset;                     // offset of the field, without tag. | 
| 67   MaybeHandle<Name> name;         // debugging only. | 67   MaybeHandle<Name> name;         // debugging only. | 
|  | 68   MaybeHandle<Map> map;           // map of the field value (if known). | 
| 68   Type* type;                     // type of the field. | 69   Type* type;                     // type of the field. | 
| 69   MachineType machine_type;       // machine type of the field. | 70   MachineType machine_type;       // machine type of the field. | 
| 70   WriteBarrierKind write_barrier_kind;  // write barrier hint. | 71   WriteBarrierKind write_barrier_kind;  // write barrier hint. | 
| 71 | 72 | 
| 72   int tag() const { return base_is_tagged == kTaggedBase ? kHeapObjectTag : 0; } | 73   int tag() const { return base_is_tagged == kTaggedBase ? kHeapObjectTag : 0; } | 
| 73 }; | 74 }; | 
| 74 | 75 | 
| 75 V8_EXPORT_PRIVATE bool operator==(FieldAccess const&, FieldAccess const&); | 76 V8_EXPORT_PRIVATE bool operator==(FieldAccess const&, FieldAccess const&); | 
| 76 bool operator!=(FieldAccess const&, FieldAccess const&); | 77 bool operator!=(FieldAccess const&, FieldAccess const&); | 
| 77 | 78 | 
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 448   Zone* const zone_; | 449   Zone* const zone_; | 
| 449 | 450 | 
| 450   DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 451   DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 
| 451 }; | 452 }; | 
| 452 | 453 | 
| 453 }  // namespace compiler | 454 }  // namespace compiler | 
| 454 }  // namespace internal | 455 }  // namespace internal | 
| 455 }  // namespace v8 | 456 }  // namespace v8 | 
| 456 | 457 | 
| 457 #endif  // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 458 #endif  // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 
| OLD | NEW | 
|---|