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

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

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/snapshot.h ('k') | tests/language/language.status » ('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 #include "vm/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 RawType* SnapshotReader::NewType() { 515 RawType* SnapshotReader::NewType() {
516 ALLOC_NEW_OBJECT(Type, object_store()->type_class()); 516 ALLOC_NEW_OBJECT(Type, object_store()->type_class());
517 } 517 }
518 518
519 519
520 RawTypeParameter* SnapshotReader::NewTypeParameter() { 520 RawTypeParameter* SnapshotReader::NewTypeParameter() {
521 ALLOC_NEW_OBJECT(TypeParameter, object_store()->type_parameter_class()); 521 ALLOC_NEW_OBJECT(TypeParameter, object_store()->type_parameter_class());
522 } 522 }
523 523
524 524
525 RawBoundedType* SnapshotReader::NewBoundedType() {
526 ALLOC_NEW_OBJECT(BoundedType, object_store()->bounded_type_class());
527 }
528
529
525 RawPatchClass* SnapshotReader::NewPatchClass() { 530 RawPatchClass* SnapshotReader::NewPatchClass() {
526 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); 531 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class());
527 } 532 }
528 533
529 534
530 RawClosureData* SnapshotReader::NewClosureData() { 535 RawClosureData* SnapshotReader::NewClosureData() {
531 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class()); 536 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class());
532 } 537 }
533 538
534 539
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 UnmarkAll(); 1355 UnmarkAll();
1351 isolate->set_long_jump_base(base); 1356 isolate->set_long_jump_base(base);
1352 } else { 1357 } else {
1353 isolate->set_long_jump_base(base); 1358 isolate->set_long_jump_base(base);
1354 ThrowException(exception_type(), exception_msg()); 1359 ThrowException(exception_type(), exception_msg());
1355 } 1360 }
1356 } 1361 }
1357 1362
1358 1363
1359 } // namespace dart 1364 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.h ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698