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

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

Issue 12473002: Complete implementation of bounds checking in the vm, by introducing a vm object (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 16 matching lines...) Expand all
27 class GrowableObjectArray; 27 class GrowableObjectArray;
28 class Heap; 28 class Heap;
29 class LanguageError; 29 class LanguageError;
30 class Library; 30 class Library;
31 class Object; 31 class Object;
32 class ObjectStore; 32 class ObjectStore;
33 class RawAbstractTypeArguments; 33 class RawAbstractTypeArguments;
34 class RawApiError; 34 class RawApiError;
35 class RawArray; 35 class RawArray;
36 class RawBigint; 36 class RawBigint;
37 class RawBoundedType;
37 class RawClass; 38 class RawClass;
38 class RawContext; 39 class RawContext;
39 class RawDouble; 40 class RawDouble;
40 class RawField; 41 class RawField;
41 class RawClosureData; 42 class RawClosureData;
42 class RawRedirectionData; 43 class RawRedirectionData;
43 class RawFunction; 44 class RawFunction;
44 class RawGrowableObjectArray; 45 class RawGrowableObjectArray;
45 class RawFloat32x4; 46 class RawFloat32x4;
46 class RawUint32x4; 47 class RawUint32x4;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 RawTypeArguments* NewTypeArguments(intptr_t len); 249 RawTypeArguments* NewTypeArguments(intptr_t len);
249 RawTokenStream* NewTokenStream(intptr_t len); 250 RawTokenStream* NewTokenStream(intptr_t len);
250 RawContext* NewContext(intptr_t num_variables); 251 RawContext* NewContext(intptr_t num_variables);
251 RawClass* NewClass(intptr_t class_id); 252 RawClass* NewClass(intptr_t class_id);
252 RawMint* NewMint(int64_t value); 253 RawMint* NewMint(int64_t value);
253 RawBigint* NewBigint(const char* hex_string); 254 RawBigint* NewBigint(const char* hex_string);
254 RawDouble* NewDouble(double value); 255 RawDouble* NewDouble(double value);
255 RawUnresolvedClass* NewUnresolvedClass(); 256 RawUnresolvedClass* NewUnresolvedClass();
256 RawType* NewType(); 257 RawType* NewType();
257 RawTypeParameter* NewTypeParameter(); 258 RawTypeParameter* NewTypeParameter();
259 RawBoundedType* NewBoundedType();
258 RawPatchClass* NewPatchClass(); 260 RawPatchClass* NewPatchClass();
259 RawClosureData* NewClosureData(); 261 RawClosureData* NewClosureData();
260 RawRedirectionData* NewRedirectionData(); 262 RawRedirectionData* NewRedirectionData();
261 RawFunction* NewFunction(); 263 RawFunction* NewFunction();
262 RawField* NewField(); 264 RawField* NewField();
263 RawLibrary* NewLibrary(); 265 RawLibrary* NewLibrary();
264 RawLibraryPrefix* NewLibraryPrefix(); 266 RawLibraryPrefix* NewLibraryPrefix();
265 RawNamespace* NewNamespace(); 267 RawNamespace* NewNamespace();
266 RawScript* NewScript(); 268 RawScript* NewScript();
267 RawLiteralToken* NewLiteralToken(); 269 RawLiteralToken* NewLiteralToken();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 AbstractType& type_; // Temporary type handle. 323 AbstractType& type_; // Temporary type handle.
322 AbstractTypeArguments& type_arguments_; // Temporary type argument handle. 324 AbstractTypeArguments& type_arguments_; // Temporary type argument handle.
323 Array& tokens_; // Temporary tokens handle. 325 Array& tokens_; // Temporary tokens handle.
324 TokenStream& stream_; // Temporary token stream handle. 326 TokenStream& stream_; // Temporary token stream handle.
325 ExternalUint8Array& data_; // Temporary stream data handle. 327 ExternalUint8Array& data_; // Temporary stream data handle.
326 UnhandledException& error_; // Error handle. 328 UnhandledException& error_; // Error handle.
327 GrowableArray<BackRefNode*> backward_references_; 329 GrowableArray<BackRefNode*> backward_references_;
328 330
329 friend class ApiError; 331 friend class ApiError;
330 friend class Array; 332 friend class Array;
333 friend class BoundedType;
331 friend class Class; 334 friend class Class;
332 friend class Context; 335 friend class Context;
333 friend class ContextScope; 336 friend class ContextScope;
334 friend class Field; 337 friend class Field;
335 friend class ClosureData; 338 friend class ClosureData;
336 friend class RedirectionData; 339 friend class RedirectionData;
337 friend class Function; 340 friend class Function;
338 friend class GrowableObjectArray; 341 friend class GrowableObjectArray;
339 friend class ImmutableArray; 342 friend class ImmutableArray;
340 friend class InstantiatedTypeArguments; 343 friend class InstantiatedTypeArguments;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 private: 601 private:
599 SnapshotWriter* writer_; 602 SnapshotWriter* writer_;
600 bool as_references_; 603 bool as_references_;
601 604
602 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 605 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
603 }; 606 };
604 607
605 } // namespace dart 608 } // namespace dart
606 609
607 #endif // VM_SNAPSHOT_H_ 610 #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