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

Side by Side Diff: src/vm/object_map.h

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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/vm/object_list.cc ('k') | src/vm/object_map.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 (c) 2014, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef SRC_VM_OBJECT_MAP_H_ 5 #ifndef SRC_VM_OBJECT_MAP_H_
6 #define SRC_VM_OBJECT_MAP_H_ 6 #define SRC_VM_OBJECT_MAP_H_
7 7
8 #include "src/vm/object.h" 8 #include "src/vm/object.h"
9 #include "src/shared/globals.h" 9 #include "src/shared/globals.h"
10 10
11 namespace fletch { 11 namespace dartino {
12 12
13 class ObjectMap { 13 class ObjectMap {
14 public: 14 public:
15 explicit ObjectMap(int capacity); 15 explicit ObjectMap(int capacity);
16 virtual ~ObjectMap(); 16 virtual ~ObjectMap();
17 17
18 int size() const { return size_; } 18 int size() const { return size_; }
19 19
20 void Add(int64 id, Object* object); 20 void Add(int64 id, Object* object);
21 21
(...skipping 28 matching lines...) Expand all
50 void AddToTableByObject(int64 id, Object* object); 50 void AddToTableByObject(int64 id, Object* object);
51 51
52 bool Expand(); 52 bool Expand();
53 53
54 void PopulateTableByObject(); 54 void PopulateTableByObject();
55 55
56 static List<Bucket*> NewTable(int length); 56 static List<Bucket*> NewTable(int length);
57 static void DeleteTable(List<Bucket*> table); 57 static void DeleteTable(List<Bucket*> table);
58 }; 58 };
59 59
60 } // namespace fletch 60 } // namespace dartino
61 61
62 #endif // SRC_VM_OBJECT_MAP_H_ 62 #endif // SRC_VM_OBJECT_MAP_H_
OLDNEW
« no previous file with comments | « src/vm/object_list.cc ('k') | src/vm/object_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698