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 6808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6819 return Smi::Value(raw_ptr()->guarded_list_length_); | 6819 return Smi::Value(raw_ptr()->guarded_list_length_); |
6820 } | 6820 } |
6821 | 6821 |
6822 | 6822 |
6823 void Field::set_guarded_list_length(intptr_t list_length) const { | 6823 void Field::set_guarded_list_length(intptr_t list_length) const { |
6824 raw_ptr()->guarded_list_length_ = Smi::New(list_length); | 6824 raw_ptr()->guarded_list_length_ = Smi::New(list_length); |
6825 } | 6825 } |
6826 | 6826 |
6827 | 6827 |
6828 bool Field::IsUnboxedField() const { | 6828 bool Field::IsUnboxedField() const { |
6829 bool valid_class = (guarded_cid() == kDoubleCid) || | 6829 bool valid_class = (FlowGraphCompiler::SupportsUnboxedDoubles() && |
| 6830 (guarded_cid() == kDoubleCid)) || |
6830 (FlowGraphCompiler::SupportsUnboxedSimd128() && | 6831 (FlowGraphCompiler::SupportsUnboxedSimd128() && |
6831 (guarded_cid() == kFloat32x4Cid)) || | 6832 (guarded_cid() == kFloat32x4Cid)) || |
6832 (FlowGraphCompiler::SupportsUnboxedSimd128() && | 6833 (FlowGraphCompiler::SupportsUnboxedSimd128() && |
6833 (guarded_cid() == kFloat64x2Cid)); | 6834 (guarded_cid() == kFloat64x2Cid)); |
6834 return is_unboxing_candidate() && !is_final() && !is_nullable() && | 6835 return is_unboxing_candidate() && !is_final() && !is_nullable() && |
6835 valid_class; | 6836 valid_class; |
6836 } | 6837 } |
6837 | 6838 |
6838 | 6839 |
6839 bool Field::IsPotentialUnboxedField() const { | 6840 bool Field::IsPotentialUnboxedField() const { |
(...skipping 12005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18845 return tag_label.ToCString(); | 18846 return tag_label.ToCString(); |
18846 } | 18847 } |
18847 | 18848 |
18848 | 18849 |
18849 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 18850 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
18850 Instance::PrintJSONImpl(stream, ref); | 18851 Instance::PrintJSONImpl(stream, ref); |
18851 } | 18852 } |
18852 | 18853 |
18853 | 18854 |
18854 } // namespace dart | 18855 } // namespace dart |
OLD | NEW |