| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 } else if (FLAG_track_fields && representation.IsSmi()) { | 1100 } else if (FLAG_track_fields && representation.IsSmi()) { |
| 1101 return IsSmi(); | 1101 return IsSmi(); |
| 1102 } else if (FLAG_track_double_fields && representation.IsDouble()) { | 1102 } else if (FLAG_track_double_fields && representation.IsDouble()) { |
| 1103 return IsMutableHeapNumber() || IsNumber(); | 1103 return IsMutableHeapNumber() || IsNumber(); |
| 1104 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { | 1104 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
| 1105 return IsHeapObject(); | 1105 return IsHeapObject(); |
| 1106 } | 1106 } |
| 1107 return true; | 1107 return true; |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 // Checks whether two valid primitive encodings of a property name resolve to |
| 1111 // the same logical property. E.g., the smi 1, the string "1" and the double |
| 1112 // 1 all refer to the same property, so this helper will return true. |
| 1113 inline bool KeyEquals(Object* other); |
| 1114 |
| 1110 Handle<HeapType> OptimalType(Isolate* isolate, Representation representation); | 1115 Handle<HeapType> OptimalType(Isolate* isolate, Representation representation); |
| 1111 | 1116 |
| 1112 inline static Handle<Object> NewStorageFor(Isolate* isolate, | 1117 inline static Handle<Object> NewStorageFor(Isolate* isolate, |
| 1113 Handle<Object> object, | 1118 Handle<Object> object, |
| 1114 Representation representation); | 1119 Representation representation); |
| 1115 | 1120 |
| 1116 inline static Handle<Object> WrapForRead(Isolate* isolate, | 1121 inline static Handle<Object> WrapForRead(Isolate* isolate, |
| 1117 Handle<Object> object, | 1122 Handle<Object> object, |
| 1118 Representation representation); | 1123 Representation representation); |
| 1119 | 1124 |
| (...skipping 10005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11125 } else { | 11130 } else { |
| 11126 value &= ~(1 << bit_position); | 11131 value &= ~(1 << bit_position); |
| 11127 } | 11132 } |
| 11128 return value; | 11133 return value; |
| 11129 } | 11134 } |
| 11130 }; | 11135 }; |
| 11131 | 11136 |
| 11132 } } // namespace v8::internal | 11137 } } // namespace v8::internal |
| 11133 | 11138 |
| 11134 #endif // V8_OBJECTS_H_ | 11139 #endif // V8_OBJECTS_H_ |
| OLD | NEW |