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

Side by Side Diff: runtime/vm/snapshot.h

Issue 12335107: Revert change 19074 until the windows build is fixed. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_SNAPSHOT_H_ 5 #ifndef VM_SNAPSHOT_H_
6 #define VM_SNAPSHOT_H_ 6 #define VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class RawLibrary; 49 class RawLibrary;
50 class RawLibraryPrefix; 50 class RawLibraryPrefix;
51 class RawNamespace; 51 class RawNamespace;
52 class RawLiteralToken; 52 class RawLiteralToken;
53 class RawMint; 53 class RawMint;
54 class RawObject; 54 class RawObject;
55 class RawOneByteString; 55 class RawOneByteString;
56 class RawPatchClass; 56 class RawPatchClass;
57 class RawScript; 57 class RawScript;
58 class RawSmi; 58 class RawSmi;
59 class RawStacktrace;
60 class RawTokenStream; 59 class RawTokenStream;
61 class RawType; 60 class RawType;
62 class RawTypeParameter; 61 class RawTypeParameter;
63 class RawTypeArguments; 62 class RawTypeArguments;
64 class RawTwoByteString; 63 class RawTwoByteString;
65 class RawUnresolvedClass; 64 class RawUnresolvedClass;
66 class String; 65 class String;
67 class TokenStream; 66 class TokenStream;
68 class UnhandledException; 67 class UnhandledException;
69 68
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 RawLibraryPrefix* NewLibraryPrefix(); 263 RawLibraryPrefix* NewLibraryPrefix();
265 RawNamespace* NewNamespace(); 264 RawNamespace* NewNamespace();
266 RawScript* NewScript(); 265 RawScript* NewScript();
267 RawLiteralToken* NewLiteralToken(); 266 RawLiteralToken* NewLiteralToken();
268 RawGrowableObjectArray* NewGrowableObjectArray(); 267 RawGrowableObjectArray* NewGrowableObjectArray();
269 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); 268 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3);
270 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); 269 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3);
271 RawApiError* NewApiError(); 270 RawApiError* NewApiError();
272 RawLanguageError* NewLanguageError(); 271 RawLanguageError* NewLanguageError();
273 RawObject* NewInteger(int64_t value); 272 RawObject* NewInteger(int64_t value);
274 RawStacktrace* NewStacktrace();
275 273
276 private: 274 private:
277 class BackRefNode : public ZoneAllocated { 275 class BackRefNode : public ZoneAllocated {
278 public: 276 public:
279 BackRefNode(Object* reference, DeserializeState state) 277 BackRefNode(Object* reference, DeserializeState state)
280 : reference_(reference), state_(state) {} 278 : reference_(reference), state_(state) {}
281 Object* reference() const { return reference_; } 279 Object* reference() const { return reference_; }
282 bool is_deserialized() const { return state_ == kIsDeserialized; } 280 bool is_deserialized() const { return state_ == kIsDeserialized; }
283 void set_state(DeserializeState state) { state_ = state; } 281 void set_state(DeserializeState state) { state_ = state; }
284 282
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 friend class ImmutableArray; 337 friend class ImmutableArray;
340 friend class InstantiatedTypeArguments; 338 friend class InstantiatedTypeArguments;
341 friend class JSRegExp; 339 friend class JSRegExp;
342 friend class LanguageError; 340 friend class LanguageError;
343 friend class Library; 341 friend class Library;
344 friend class LibraryPrefix; 342 friend class LibraryPrefix;
345 friend class Namespace; 343 friend class Namespace;
346 friend class LiteralToken; 344 friend class LiteralToken;
347 friend class PatchClass; 345 friend class PatchClass;
348 friend class Script; 346 friend class Script;
349 friend class Stacktrace;
350 friend class TokenStream; 347 friend class TokenStream;
351 friend class Type; 348 friend class Type;
352 friend class TypeArguments; 349 friend class TypeArguments;
353 friend class TypeParameter; 350 friend class TypeParameter;
354 friend class UnresolvedClass; 351 friend class UnresolvedClass;
355 friend class WeakProperty; 352 friend class WeakProperty;
356 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); 353 DISALLOW_COPY_AND_ASSIGN(SnapshotReader);
357 }; 354 };
358 355
359 356
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 private: 595 private:
599 SnapshotWriter* writer_; 596 SnapshotWriter* writer_;
600 bool as_references_; 597 bool as_references_;
601 598
602 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 599 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
603 }; 600 };
604 601
605 } // namespace dart 602 } // namespace dart
606 603
607 #endif // VM_SNAPSHOT_H_ 604 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698