Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: src/objects.h

Issue 1312413002: Move runtime helper for JSSet and JSMap onto objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698