| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 10157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10168 // | 10168 // |
| 10169 // When the [Next] result from the iterator is requested, the iterator checks if | 10169 // When the [Next] result from the iterator is requested, the iterator checks if |
| 10170 // there is a newer table that it needs to transition to. | 10170 // there is a newer table that it needs to transition to. |
| 10171 template<class Derived, class TableType> | 10171 template<class Derived, class TableType> |
| 10172 class OrderedHashTableIterator: public JSObject { | 10172 class OrderedHashTableIterator: public JSObject { |
| 10173 public: | 10173 public: |
| 10174 // [table]: the backing hash table mapping keys to values. | 10174 // [table]: the backing hash table mapping keys to values. |
| 10175 DECL_ACCESSORS(table, Object) | 10175 DECL_ACCESSORS(table, Object) |
| 10176 | 10176 |
| 10177 // [index]: The index into the data table. | 10177 // [index]: The index into the data table. |
| 10178 DECL_ACCESSORS(index, Smi) | 10178 DECL_ACCESSORS(index, Object) |
| 10179 | 10179 |
| 10180 // [kind]: The kind of iteration this is. One of the [Kind] enum values. | 10180 // [kind]: The kind of iteration this is. One of the [Kind] enum values. |
| 10181 DECL_ACCESSORS(kind, Smi) | 10181 DECL_ACCESSORS(kind, Object) |
| 10182 | 10182 |
| 10183 #ifdef OBJECT_PRINT | 10183 #ifdef OBJECT_PRINT |
| 10184 void OrderedHashTableIteratorPrint(OStream& os); // NOLINT | 10184 void OrderedHashTableIteratorPrint(OStream& os); // NOLINT |
| 10185 #endif | 10185 #endif |
| 10186 | 10186 |
| 10187 static const int kTableOffset = JSObject::kHeaderSize; | 10187 static const int kTableOffset = JSObject::kHeaderSize; |
| 10188 static const int kIndexOffset = kTableOffset + kPointerSize; | 10188 static const int kIndexOffset = kTableOffset + kPointerSize; |
| 10189 static const int kKindOffset = kIndexOffset + kPointerSize; | 10189 static const int kKindOffset = kIndexOffset + kPointerSize; |
| 10190 static const int kSize = kKindOffset + kPointerSize; | 10190 static const int kSize = kKindOffset + kPointerSize; |
| 10191 | 10191 |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11273 } else { | 11273 } else { |
| 11274 value &= ~(1 << bit_position); | 11274 value &= ~(1 << bit_position); |
| 11275 } | 11275 } |
| 11276 return value; | 11276 return value; |
| 11277 } | 11277 } |
| 11278 }; | 11278 }; |
| 11279 | 11279 |
| 11280 } } // namespace v8::internal | 11280 } } // namespace v8::internal |
| 11281 | 11281 |
| 11282 #endif // V8_OBJECTS_H_ | 11282 #endif // V8_OBJECTS_H_ |
| OLD | NEW |