| OLD | NEW |
| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 RawUnresolvedClass* SnapshotReader::NewUnresolvedClass() { | 529 RawUnresolvedClass* SnapshotReader::NewUnresolvedClass() { |
| 530 ALLOC_NEW_OBJECT(UnresolvedClass, Object::unresolved_class_class()); | 530 ALLOC_NEW_OBJECT(UnresolvedClass, Object::unresolved_class_class()); |
| 531 } | 531 } |
| 532 | 532 |
| 533 | 533 |
| 534 RawType* SnapshotReader::NewType() { | 534 RawType* SnapshotReader::NewType() { |
| 535 ALLOC_NEW_OBJECT(Type, object_store()->type_class()); | 535 ALLOC_NEW_OBJECT(Type, object_store()->type_class()); |
| 536 } | 536 } |
| 537 | 537 |
| 538 | 538 |
| 539 RawTypeRef* SnapshotReader::NewTypeRef() { |
| 540 ALLOC_NEW_OBJECT(TypeRef, object_store()->type_ref_class()); |
| 541 } |
| 542 |
| 543 |
| 539 RawTypeParameter* SnapshotReader::NewTypeParameter() { | 544 RawTypeParameter* SnapshotReader::NewTypeParameter() { |
| 540 ALLOC_NEW_OBJECT(TypeParameter, object_store()->type_parameter_class()); | 545 ALLOC_NEW_OBJECT(TypeParameter, object_store()->type_parameter_class()); |
| 541 } | 546 } |
| 542 | 547 |
| 543 | 548 |
| 544 RawBoundedType* SnapshotReader::NewBoundedType() { | 549 RawBoundedType* SnapshotReader::NewBoundedType() { |
| 545 ALLOC_NEW_OBJECT(BoundedType, object_store()->bounded_type_class()); | 550 ALLOC_NEW_OBJECT(BoundedType, object_store()->bounded_type_class()); |
| 546 } | 551 } |
| 547 | 552 |
| 548 | 553 |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 UnmarkAll(); | 1521 UnmarkAll(); |
| 1517 isolate->set_long_jump_base(base); | 1522 isolate->set_long_jump_base(base); |
| 1518 } else { | 1523 } else { |
| 1519 isolate->set_long_jump_base(base); | 1524 isolate->set_long_jump_base(base); |
| 1520 ThrowException(exception_type(), exception_msg()); | 1525 ThrowException(exception_type(), exception_msg()); |
| 1521 } | 1526 } |
| 1522 } | 1527 } |
| 1523 | 1528 |
| 1524 | 1529 |
| 1525 } // namespace dart | 1530 } // namespace dart |
| OLD | NEW |