| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { | 1014 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { |
| 1015 ALLOC_NEW_OBJECT(GrowableObjectArray); | 1015 ALLOC_NEW_OBJECT(GrowableObjectArray); |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 | 1018 |
| 1019 RawWeakProperty* SnapshotReader::NewWeakProperty() { | 1019 RawWeakProperty* SnapshotReader::NewWeakProperty() { |
| 1020 ALLOC_NEW_OBJECT(WeakProperty); | 1020 ALLOC_NEW_OBJECT(WeakProperty); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 | 1023 |
| 1024 RawJSRegExp* SnapshotReader::NewJSRegExp() { |
| 1025 ALLOC_NEW_OBJECT(JSRegExp); |
| 1026 } |
| 1027 |
| 1028 |
| 1024 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, | 1029 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, |
| 1025 float v3) { | 1030 float v3) { |
| 1026 ASSERT(kind_ == Snapshot::kFull); | 1031 ASSERT(kind_ == Snapshot::kFull); |
| 1027 ASSERT_NO_SAFEPOINT_SCOPE(); | 1032 ASSERT_NO_SAFEPOINT_SCOPE(); |
| 1028 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( | 1033 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( |
| 1029 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); | 1034 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); |
| 1030 obj->ptr()->value_[0] = v0; | 1035 obj->ptr()->value_[0] = v0; |
| 1031 obj->ptr()->value_[1] = v1; | 1036 obj->ptr()->value_[1] = v1; |
| 1032 obj->ptr()->value_[2] = v2; | 1037 obj->ptr()->value_[2] = v2; |
| 1033 obj->ptr()->value_[3] = v3; | 1038 obj->ptr()->value_[3] = v3; |
| (...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 if (setjmp(*jump.Set()) == 0) { | 2584 if (setjmp(*jump.Set()) == 0) { |
| 2580 NoSafepointScope no_safepoint; | 2585 NoSafepointScope no_safepoint; |
| 2581 WriteObject(obj.raw()); | 2586 WriteObject(obj.raw()); |
| 2582 } else { | 2587 } else { |
| 2583 ThrowException(exception_type(), exception_msg()); | 2588 ThrowException(exception_type(), exception_msg()); |
| 2584 } | 2589 } |
| 2585 } | 2590 } |
| 2586 | 2591 |
| 2587 | 2592 |
| 2588 } // namespace dart | 2593 } // namespace dart |
| OLD | NEW |