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

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

Issue 12320103: Fix for bug 6767 - Limit stack trace collection for stack overflow exceptions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | 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;
59 class RawTokenStream; 60 class RawTokenStream;
60 class RawType; 61 class RawType;
61 class RawTypeParameter; 62 class RawTypeParameter;
62 class RawTypeArguments; 63 class RawTypeArguments;
63 class RawTwoByteString; 64 class RawTwoByteString;
64 class RawUnresolvedClass; 65 class RawUnresolvedClass;
65 class String; 66 class String;
66 class TokenStream; 67 class TokenStream;
67 class UnhandledException; 68 class UnhandledException;
68 69
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 RawLibraryPrefix* NewLibraryPrefix(); 264 RawLibraryPrefix* NewLibraryPrefix();
264 RawNamespace* NewNamespace(); 265 RawNamespace* NewNamespace();
265 RawScript* NewScript(); 266 RawScript* NewScript();
266 RawLiteralToken* NewLiteralToken(); 267 RawLiteralToken* NewLiteralToken();
267 RawGrowableObjectArray* NewGrowableObjectArray(); 268 RawGrowableObjectArray* NewGrowableObjectArray();
268 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3); 269 RawFloat32x4* NewFloat32x4(float v0, float v1, float v2, float v3);
269 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3); 270 RawUint32x4* NewUint32x4(uint32_t v0, uint32_t v1, uint32_t v2, uint32_t v3);
270 RawApiError* NewApiError(); 271 RawApiError* NewApiError();
271 RawLanguageError* NewLanguageError(); 272 RawLanguageError* NewLanguageError();
272 RawObject* NewInteger(int64_t value); 273 RawObject* NewInteger(int64_t value);
274 RawStacktrace* NewStacktrace();
273 275
274 private: 276 private:
275 class BackRefNode : public ZoneAllocated { 277 class BackRefNode : public ZoneAllocated {
276 public: 278 public:
277 BackRefNode(Object* reference, DeserializeState state) 279 BackRefNode(Object* reference, DeserializeState state)
278 : reference_(reference), state_(state) {} 280 : reference_(reference), state_(state) {}
279 Object* reference() const { return reference_; } 281 Object* reference() const { return reference_; }
280 bool is_deserialized() const { return state_ == kIsDeserialized; } 282 bool is_deserialized() const { return state_ == kIsDeserialized; }
281 void set_state(DeserializeState state) { state_ = state; } 283 void set_state(DeserializeState state) { state_ = state; }
282 284
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 friend class ImmutableArray; 339 friend class ImmutableArray;
338 friend class InstantiatedTypeArguments; 340 friend class InstantiatedTypeArguments;
339 friend class JSRegExp; 341 friend class JSRegExp;
340 friend class LanguageError; 342 friend class LanguageError;
341 friend class Library; 343 friend class Library;
342 friend class LibraryPrefix; 344 friend class LibraryPrefix;
343 friend class Namespace; 345 friend class Namespace;
344 friend class LiteralToken; 346 friend class LiteralToken;
345 friend class PatchClass; 347 friend class PatchClass;
346 friend class Script; 348 friend class Script;
349 friend class Stacktrace;
347 friend class TokenStream; 350 friend class TokenStream;
348 friend class Type; 351 friend class Type;
349 friend class TypeArguments; 352 friend class TypeArguments;
350 friend class TypeParameter; 353 friend class TypeParameter;
351 friend class UnresolvedClass; 354 friend class UnresolvedClass;
352 friend class WeakProperty; 355 friend class WeakProperty;
353 DISALLOW_COPY_AND_ASSIGN(SnapshotReader); 356 DISALLOW_COPY_AND_ASSIGN(SnapshotReader);
354 }; 357 };
355 358
356 359
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 private: 598 private:
596 SnapshotWriter* writer_; 599 SnapshotWriter* writer_;
597 bool as_references_; 600 bool as_references_;
598 601
599 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 602 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
600 }; 603 };
601 604
602 } // namespace dart 605 } // namespace dart
603 606
604 #endif // VM_SNAPSHOT_H_ 607 #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