| 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/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 RawLiteralToken* SnapshotReader::NewLiteralToken() { | 1110 RawLiteralToken* SnapshotReader::NewLiteralToken() { |
| 1111 ALLOC_NEW_OBJECT(LiteralToken); | 1111 ALLOC_NEW_OBJECT(LiteralToken); |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 | 1114 |
| 1115 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { | 1115 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { |
| 1116 ALLOC_NEW_OBJECT(GrowableObjectArray); | 1116 ALLOC_NEW_OBJECT(GrowableObjectArray); |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 | 1119 |
| 1120 RawWeakProperty* SnapshotReader::NewWeakProperty() { |
| 1121 ALLOC_NEW_OBJECT(WeakProperty); |
| 1122 } |
| 1123 |
| 1124 |
| 1120 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, | 1125 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, |
| 1121 float v3) { | 1126 float v3) { |
| 1122 ASSERT(kind_ == Snapshot::kFull); | 1127 ASSERT(kind_ == Snapshot::kFull); |
| 1123 ASSERT_NO_SAFEPOINT_SCOPE(); | 1128 ASSERT_NO_SAFEPOINT_SCOPE(); |
| 1124 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( | 1129 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( |
| 1125 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); | 1130 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); |
| 1126 obj->ptr()->value_[0] = v0; | 1131 obj->ptr()->value_[0] = v0; |
| 1127 obj->ptr()->value_[1] = v1; | 1132 obj->ptr()->value_[1] = v1; |
| 1128 obj->ptr()->value_[2] = v2; | 1133 obj->ptr()->value_[2] = v2; |
| 1129 obj->ptr()->value_[3] = v3; | 1134 obj->ptr()->value_[3] = v3; |
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2650 if (setjmp(*jump.Set()) == 0) { | 2655 if (setjmp(*jump.Set()) == 0) { |
| 2651 NoSafepointScope no_safepoint; | 2656 NoSafepointScope no_safepoint; |
| 2652 WriteObject(obj.raw()); | 2657 WriteObject(obj.raw()); |
| 2653 } else { | 2658 } else { |
| 2654 ThrowException(exception_type(), exception_msg()); | 2659 ThrowException(exception_type(), exception_msg()); |
| 2655 } | 2660 } |
| 2656 } | 2661 } |
| 2657 | 2662 |
| 2658 | 2663 |
| 2659 } // namespace dart | 2664 } // namespace dart |
| OLD | NEW |