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

Side by Side Diff: src/vm/snapshot.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/signal.h ('k') | src/vm/snapshot.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_SNAPSHOT_H_ 5 #ifndef SRC_VM_SNAPSHOT_H_
6 #define SRC_VM_SNAPSHOT_H_ 6 #define SRC_VM_SNAPSHOT_H_
7 7
8 #include "src/shared/globals.h" 8 #include "src/shared/globals.h"
9 #include "src/shared/list.h" 9 #include "src/shared/list.h"
10 #include "src/shared/platform.h" 10 #include "src/shared/platform.h"
11 11
12 #include "src/vm/hash_map.h" 12 #include "src/vm/hash_map.h"
13 #include "src/vm/object.h" 13 #include "src/vm/object.h"
14 #include "src/vm/process.h" 14 #include "src/vm/process.h"
15 #include "src/vm/program.h" 15 #include "src/vm/program.h"
16 16
17 namespace fletch { 17 namespace dartino {
18 18
19 // Used for calculating the heap size of all supported configurations 19 // Used for calculating the heap size of all supported configurations
20 // (i.e. all of {64-bit, 32-bit}x{float,double}). 20 // (i.e. all of {64-bit, 32-bit}x{float,double}).
21 // 21 //
22 // The snapshot will contain heap sizes for all configurations, so the reader 22 // The snapshot will contain heap sizes for all configurations, so the reader
23 // knows it before reading any objects(). 23 // knows it before reading any objects().
24 class PortableOffset { 24 class PortableOffset {
25 public: 25 public:
26 PortableOffset() 26 PortableOffset()
27 : offset_64bits_double(0), 27 : offset_64bits_double(0),
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 void WriteHeapSizeTo(int position, int size); 179 void WriteHeapSizeTo(int position, int size);
180 180
181 void EnsureCapacity(int extra) { 181 void EnsureCapacity(int extra) {
182 if (position_ + extra >= snapshot_.length()) GrowCapacity(extra); 182 if (position_ + extra >= snapshot_.length()) GrowCapacity(extra);
183 } 183 }
184 184
185 void GrowCapacity(int extra); 185 void GrowCapacity(int extra);
186 }; 186 };
187 187
188 } // namespace fletch 188 } // namespace dartino
189 189
190 #endif // SRC_VM_SNAPSHOT_H_ 190 #endif // SRC_VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « src/vm/signal.h ('k') | src/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698