| 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/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 8628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8639 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) { | 8639 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) { |
| 8640 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); | 8640 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); |
| 8641 } | 8641 } |
| 8642 | 8642 |
| 8643 | 8643 |
| 8644 Code::Comments::Comments(const Array& comments) | 8644 Code::Comments::Comments(const Array& comments) |
| 8645 : comments_(comments) { | 8645 : comments_(comments) { |
| 8646 } | 8646 } |
| 8647 | 8647 |
| 8648 | 8648 |
| 8649 void Code::set_state_bits(intptr_t bits) const { |
| 8650 raw_ptr()->state_bits_ = bits; |
| 8651 } |
| 8652 |
| 8653 |
| 8654 void Code::set_is_optimized(bool value) const { |
| 8655 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_)); |
| 8656 } |
| 8657 |
| 8658 |
| 8659 void Code::set_is_alive(bool value) const { |
| 8660 set_state_bits(AliveBit::update(value, raw_ptr()->state_bits_)); |
| 8661 } |
| 8662 |
| 8663 |
| 8649 void Code::set_stackmaps(const Array& maps) const { | 8664 void Code::set_stackmaps(const Array& maps) const { |
| 8650 ASSERT(maps.IsOld()); | 8665 ASSERT(maps.IsOld()); |
| 8651 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); | 8666 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); |
| 8652 } | 8667 } |
| 8653 | 8668 |
| 8654 | 8669 |
| 8655 void Code::set_deopt_info_array(const Array& array) const { | 8670 void Code::set_deopt_info_array(const Array& array) const { |
| 8656 ASSERT(array.IsOld()); | 8671 ASSERT(array.IsOld()); |
| 8657 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); | 8672 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); |
| 8658 } | 8673 } |
| (...skipping 6229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14888 } | 14903 } |
| 14889 | 14904 |
| 14890 | 14905 |
| 14891 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14906 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14892 stream->OpenObject(); | 14907 stream->OpenObject(); |
| 14893 stream->CloseObject(); | 14908 stream->CloseObject(); |
| 14894 } | 14909 } |
| 14895 | 14910 |
| 14896 | 14911 |
| 14897 } // namespace dart | 14912 } // namespace dart |
| OLD | NEW |