| 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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { | 1058 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { |
| 1059 ALLOC_NEW_OBJECT(GrowableObjectArray); | 1059 ALLOC_NEW_OBJECT(GrowableObjectArray); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 | 1062 |
| 1063 RawWeakProperty* SnapshotReader::NewWeakProperty() { | 1063 RawWeakProperty* SnapshotReader::NewWeakProperty() { |
| 1064 ALLOC_NEW_OBJECT(WeakProperty); | 1064 ALLOC_NEW_OBJECT(WeakProperty); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 | 1067 |
| 1068 RawJSRegExp* SnapshotReader::NewJSRegExp() { | 1068 RawRegExp* SnapshotReader::NewRegExp() { |
| 1069 ALLOC_NEW_OBJECT(JSRegExp); | 1069 ALLOC_NEW_OBJECT(RegExp); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 | 1072 |
| 1073 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, | 1073 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, |
| 1074 float v3) { | 1074 float v3) { |
| 1075 ASSERT(kind_ == Snapshot::kFull); | 1075 ASSERT(kind_ == Snapshot::kFull); |
| 1076 ASSERT_NO_SAFEPOINT_SCOPE(); | 1076 ASSERT_NO_SAFEPOINT_SCOPE(); |
| 1077 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( | 1077 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( |
| 1078 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); | 1078 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); |
| 1079 obj->ptr()->value_[0] = v0; | 1079 obj->ptr()->value_[0] = v0; |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2687 if (setjmp(*jump.Set()) == 0) { | 2687 if (setjmp(*jump.Set()) == 0) { |
| 2688 NoSafepointScope no_safepoint; | 2688 NoSafepointScope no_safepoint; |
| 2689 WriteObject(obj.raw()); | 2689 WriteObject(obj.raw()); |
| 2690 } else { | 2690 } else { |
| 2691 ThrowException(exception_type(), exception_msg()); | 2691 ThrowException(exception_type(), exception_msg()); |
| 2692 } | 2692 } |
| 2693 } | 2693 } |
| 2694 | 2694 |
| 2695 | 2695 |
| 2696 } // namespace dart | 2696 } // namespace dart |
| OLD | NEW |