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/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/become.h" | 10 #include "vm/become.h" |
(...skipping 13989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14000 | 14000 |
14001 | 14001 |
14002 void Code::set_stackmaps(const Array& maps) const { | 14002 void Code::set_stackmaps(const Array& maps) const { |
14003 ASSERT(maps.IsOld()); | 14003 ASSERT(maps.IsOld()); |
14004 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); | 14004 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); |
14005 INC_STAT(Thread::Current(), total_code_size, | 14005 INC_STAT(Thread::Current(), total_code_size, |
14006 maps.IsNull() ? 0 : maps.Length() * sizeof(uword)); | 14006 maps.IsNull() ? 0 : maps.Length() * sizeof(uword)); |
14007 } | 14007 } |
14008 | 14008 |
14009 | 14009 |
| 14010 #if !defined(DART_PRECOMPILED_RUNTIME) && !defined(DART_PRECOMPILER) |
| 14011 void Code::set_variables(const Smi& smi) const { |
| 14012 StorePointer(&raw_ptr()->catch_entry_.variables_, smi.raw()); |
| 14013 } |
| 14014 #else |
| 14015 void Code::set_catch_entry_state_maps(const TypedData& maps) const { |
| 14016 StorePointer(&raw_ptr()->catch_entry_.catch_entry_state_maps_, maps.raw()); |
| 14017 } |
| 14018 #endif |
| 14019 |
| 14020 |
14010 void Code::set_deopt_info_array(const Array& array) const { | 14021 void Code::set_deopt_info_array(const Array& array) const { |
14011 #if defined(DART_PRECOMPILED_RUNTIME) | 14022 #if defined(DART_PRECOMPILED_RUNTIME) |
14012 UNREACHABLE(); | 14023 UNREACHABLE(); |
14013 #else | 14024 #else |
14014 ASSERT(array.IsOld()); | 14025 ASSERT(array.IsOld()); |
14015 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); | 14026 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); |
14016 #endif | 14027 #endif |
14017 } | 14028 } |
14018 | 14029 |
14019 | 14030 |
(...skipping 8928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22948 return UserTag::null(); | 22959 return UserTag::null(); |
22949 } | 22960 } |
22950 | 22961 |
22951 | 22962 |
22952 const char* UserTag::ToCString() const { | 22963 const char* UserTag::ToCString() const { |
22953 const String& tag_label = String::Handle(label()); | 22964 const String& tag_label = String::Handle(label()); |
22954 return tag_label.ToCString(); | 22965 return tag_label.ToCString(); |
22955 } | 22966 } |
22956 | 22967 |
22957 } // namespace dart | 22968 } // namespace dart |
OLD | NEW |