| 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 5837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5848 if (is_static) { | 5848 if (is_static) { |
| 5849 result.set_value(Object::null_instance()); | 5849 result.set_value(Object::null_instance()); |
| 5850 } else { | 5850 } else { |
| 5851 result.SetOffset(0); | 5851 result.SetOffset(0); |
| 5852 } | 5852 } |
| 5853 result.set_is_final(is_final); | 5853 result.set_is_final(is_final); |
| 5854 result.set_is_const(is_const); | 5854 result.set_is_const(is_const); |
| 5855 result.set_owner(owner); | 5855 result.set_owner(owner); |
| 5856 result.set_token_pos(token_pos); | 5856 result.set_token_pos(token_pos); |
| 5857 result.set_has_initializer(false); | 5857 result.set_has_initializer(false); |
| 5858 result.set_is_unboxing_candidate(true); |
| 5858 result.set_guarded_cid(kIllegalCid); | 5859 result.set_guarded_cid(kIllegalCid); |
| 5859 result.set_is_nullable(false); | 5860 result.set_is_nullable(false); |
| 5860 // Presently, we only attempt to remember the list length for final fields. | 5861 // Presently, we only attempt to remember the list length for final fields. |
| 5861 if (is_final) { | 5862 if (is_final) { |
| 5862 result.set_guarded_list_length(Field::kUnknownFixedLength); | 5863 result.set_guarded_list_length(Field::kUnknownFixedLength); |
| 5863 } else { | 5864 } else { |
| 5864 result.set_guarded_list_length(Field::kNoFixedLength); | 5865 result.set_guarded_list_length(Field::kNoFixedLength); |
| 5865 } | 5866 } |
| 5866 result.set_dependent_code(Object::null_array()); | 5867 result.set_dependent_code(Object::null_array()); |
| 5867 return result.raw(); | 5868 return result.raw(); |
| (...skipping 10590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16458 return "_MirrorReference"; | 16459 return "_MirrorReference"; |
| 16459 } | 16460 } |
| 16460 | 16461 |
| 16461 | 16462 |
| 16462 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 16463 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 16463 Instance::PrintToJSONStream(stream, ref); | 16464 Instance::PrintToJSONStream(stream, ref); |
| 16464 } | 16465 } |
| 16465 | 16466 |
| 16466 | 16467 |
| 16467 } // namespace dart | 16468 } // namespace dart |
| OLD | NEW |