| 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 "allocation.h" | 8 #include "allocation.h" |
| 9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
| 10 #include "builtins.h" | 10 #include "builtins.h" |
| (...skipping 4305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4316 public: | 4316 public: |
| 4317 static OrderedHashSet* cast(Object* obj) { | 4317 static OrderedHashSet* cast(Object* obj) { |
| 4318 ASSERT(obj->IsOrderedHashTable()); | 4318 ASSERT(obj->IsOrderedHashTable()); |
| 4319 return reinterpret_cast<OrderedHashSet*>(obj); | 4319 return reinterpret_cast<OrderedHashSet*>(obj); |
| 4320 } | 4320 } |
| 4321 | 4321 |
| 4322 bool Contains(Handle<Object> key); | 4322 bool Contains(Handle<Object> key); |
| 4323 static Handle<OrderedHashSet> Add( | 4323 static Handle<OrderedHashSet> Add( |
| 4324 Handle<OrderedHashSet> table, Handle<Object> key); | 4324 Handle<OrderedHashSet> table, Handle<Object> key); |
| 4325 static Handle<OrderedHashSet> Remove( | 4325 static Handle<OrderedHashSet> Remove( |
| 4326 Handle<OrderedHashSet> table, Handle<Object> key); | 4326 Handle<OrderedHashSet> table, Handle<Object> key, bool* was_present); |
| 4327 }; | 4327 }; |
| 4328 | 4328 |
| 4329 | 4329 |
| 4330 class JSMapIterator; | 4330 class JSMapIterator; |
| 4331 | 4331 |
| 4332 | 4332 |
| 4333 class OrderedHashMap:public OrderedHashTable< | 4333 class OrderedHashMap:public OrderedHashTable< |
| 4334 OrderedHashMap, JSMapIterator, 2> { | 4334 OrderedHashMap, JSMapIterator, 2> { |
| 4335 public: | 4335 public: |
| 4336 static OrderedHashMap* cast(Object* obj) { | 4336 static OrderedHashMap* cast(Object* obj) { |
| (...skipping 6779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11116 } else { | 11116 } else { |
| 11117 value &= ~(1 << bit_position); | 11117 value &= ~(1 << bit_position); |
| 11118 } | 11118 } |
| 11119 return value; | 11119 return value; |
| 11120 } | 11120 } |
| 11121 }; | 11121 }; |
| 11122 | 11122 |
| 11123 } } // namespace v8::internal | 11123 } } // namespace v8::internal |
| 11124 | 11124 |
| 11125 #endif // V8_OBJECTS_H_ | 11125 #endif // V8_OBJECTS_H_ |
| OLD | NEW |