OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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/clustered_snapshot.h" | 5 #include "vm/clustered_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 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 code->ptr()->static_calls_target_table_ = Array::null(); | 1590 code->ptr()->static_calls_target_table_ = Array::null(); |
1591 code->ptr()->var_descriptors_ = LocalVarDescriptors::null(); | 1591 code->ptr()->var_descriptors_ = LocalVarDescriptors::null(); |
1592 code->ptr()->inlined_metadata_ = Array::null(); | 1592 code->ptr()->inlined_metadata_ = Array::null(); |
1593 code->ptr()->code_source_map_ = CodeSourceMap::null(); | 1593 code->ptr()->code_source_map_ = CodeSourceMap::null(); |
1594 code->ptr()->comments_ = Array::null(); | 1594 code->ptr()->comments_ = Array::null(); |
1595 code->ptr()->return_address_metadata_ = Object::null(); | 1595 code->ptr()->return_address_metadata_ = Object::null(); |
1596 | 1596 |
1597 code->ptr()->compile_timestamp_ = 0; | 1597 code->ptr()->compile_timestamp_ = 0; |
1598 #endif | 1598 #endif |
1599 code->ptr()->state_bits_ = d->Read<int32_t>(); | 1599 code->ptr()->state_bits_ = d->Read<int32_t>(); |
1600 #if !defined(DART_PRECOMPILED_RUNTIME) | |
1601 code->ptr()->lazy_deopt_return_pc_offset_ = -1; | |
1602 code->ptr()->lazy_deopt_throw_pc_offset_ = -1; | |
1603 #endif | |
1604 } | 1600 } |
1605 } | 1601 } |
1606 }; | 1602 }; |
1607 | 1603 |
1608 | 1604 |
1609 #if !defined(DART_PRECOMPILED_RUNTIME) | 1605 #if !defined(DART_PRECOMPILED_RUNTIME) |
1610 class ObjectPoolSerializationCluster : public SerializationCluster { | 1606 class ObjectPoolSerializationCluster : public SerializationCluster { |
1611 public: | 1607 public: |
1612 ObjectPoolSerializationCluster() { } | 1608 ObjectPoolSerializationCluster() { } |
1613 virtual ~ObjectPoolSerializationCluster() { } | 1609 virtual ~ObjectPoolSerializationCluster() { } |
(...skipping 3596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5210 | 5206 |
5211 deserializer.ReadVMSnapshot(); | 5207 deserializer.ReadVMSnapshot(); |
5212 | 5208 |
5213 Dart::set_instructions_snapshot_buffer(instructions_buffer_); | 5209 Dart::set_instructions_snapshot_buffer(instructions_buffer_); |
5214 Dart::set_data_snapshot_buffer(data_buffer_); | 5210 Dart::set_data_snapshot_buffer(data_buffer_); |
5215 | 5211 |
5216 return ApiError::null(); | 5212 return ApiError::null(); |
5217 } | 5213 } |
5218 | 5214 |
5219 } // namespace dart | 5215 } // namespace dart |
OLD | NEW |