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 9283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9294 private: | 9294 private: |
9295 DISALLOW_IMPLICIT_CONSTRUCTORS(JSCollection); | 9295 DISALLOW_IMPLICIT_CONSTRUCTORS(JSCollection); |
9296 }; | 9296 }; |
9297 | 9297 |
9298 | 9298 |
9299 // The JSSet describes EcmaScript Harmony sets | 9299 // The JSSet describes EcmaScript Harmony sets |
9300 class JSSet : public JSCollection { | 9300 class JSSet : public JSCollection { |
9301 public: | 9301 public: |
9302 DECLARE_CAST(JSSet) | 9302 DECLARE_CAST(JSSet) |
9303 | 9303 |
| 9304 static void Initialize(Handle<JSSet> set, Isolate* isolate); |
| 9305 static void Clear(Handle<JSSet> set); |
| 9306 |
9304 // Dispatched behavior. | 9307 // Dispatched behavior. |
9305 DECLARE_PRINTER(JSSet) | 9308 DECLARE_PRINTER(JSSet) |
9306 DECLARE_VERIFIER(JSSet) | 9309 DECLARE_VERIFIER(JSSet) |
9307 | 9310 |
9308 private: | 9311 private: |
9309 DISALLOW_IMPLICIT_CONSTRUCTORS(JSSet); | 9312 DISALLOW_IMPLICIT_CONSTRUCTORS(JSSet); |
9310 }; | 9313 }; |
9311 | 9314 |
9312 | 9315 |
9313 // The JSMap describes EcmaScript Harmony maps | 9316 // The JSMap describes EcmaScript Harmony maps |
9314 class JSMap : public JSCollection { | 9317 class JSMap : public JSCollection { |
9315 public: | 9318 public: |
9316 DECLARE_CAST(JSMap) | 9319 DECLARE_CAST(JSMap) |
9317 | 9320 |
| 9321 static void Initialize(Handle<JSMap> map, Isolate* isolate); |
| 9322 static void Clear(Handle<JSMap> map); |
| 9323 |
9318 // Dispatched behavior. | 9324 // Dispatched behavior. |
9319 DECLARE_PRINTER(JSMap) | 9325 DECLARE_PRINTER(JSMap) |
9320 DECLARE_VERIFIER(JSMap) | 9326 DECLARE_VERIFIER(JSMap) |
9321 | 9327 |
9322 private: | 9328 private: |
9323 DISALLOW_IMPLICIT_CONSTRUCTORS(JSMap); | 9329 DISALLOW_IMPLICIT_CONSTRUCTORS(JSMap); |
9324 }; | 9330 }; |
9325 | 9331 |
9326 | 9332 |
9327 // OrderedHashTableIterator is an iterator that iterates over the keys and | 9333 // OrderedHashTableIterator is an iterator that iterates over the keys and |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10314 } else { | 10320 } else { |
10315 value &= ~(1 << bit_position); | 10321 value &= ~(1 << bit_position); |
10316 } | 10322 } |
10317 return value; | 10323 return value; |
10318 } | 10324 } |
10319 }; | 10325 }; |
10320 | 10326 |
10321 } } // namespace v8::internal | 10327 } } // namespace v8::internal |
10322 | 10328 |
10323 #endif // V8_OBJECTS_H_ | 10329 #endif // V8_OBJECTS_H_ |
OLD | NEW |