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 6352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6363 } | 6363 } |
6364 | 6364 |
6365 | 6365 |
6366 void Field::set_guarded_list_length(intptr_t list_length) const { | 6366 void Field::set_guarded_list_length(intptr_t list_length) const { |
6367 raw_ptr()->guarded_list_length_ = Smi::New(list_length); | 6367 raw_ptr()->guarded_list_length_ = Smi::New(list_length); |
6368 } | 6368 } |
6369 | 6369 |
6370 | 6370 |
6371 bool Field::IsUnboxedField() const { | 6371 bool Field::IsUnboxedField() const { |
6372 bool valid_class = (guarded_cid() == kDoubleCid) || | 6372 bool valid_class = (guarded_cid() == kDoubleCid) || |
6373 (FlowGraphCompiler::SupportsUnboxedFloat32x4() && | 6373 (FlowGraphCompiler::SupportsUnboxedSimd128() && |
6374 (guarded_cid() == kFloat32x4Cid)); | 6374 (guarded_cid() == kFloat32x4Cid)) || |
| 6375 (FlowGraphCompiler::SupportsUnboxedSimd128() && |
| 6376 (guarded_cid() == kFloat64x2Cid)); |
6375 return is_unboxing_candidate() && !is_final() && !is_nullable() && | 6377 return is_unboxing_candidate() && !is_final() && !is_nullable() && |
6376 valid_class; | 6378 valid_class; |
6377 } | 6379 } |
6378 | 6380 |
6379 | 6381 |
6380 bool Field::IsPotentialUnboxedField() const { | 6382 bool Field::IsPotentialUnboxedField() const { |
6381 return is_unboxing_candidate() && | 6383 return is_unboxing_candidate() && |
6382 (IsUnboxedField() || (!is_final() && (guarded_cid() == kIllegalCid))); | 6384 (IsUnboxedField() || (!is_final() && (guarded_cid() == kIllegalCid))); |
6383 } | 6385 } |
6384 | 6386 |
(...skipping 11183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17568 return "_MirrorReference"; | 17570 return "_MirrorReference"; |
17569 } | 17571 } |
17570 | 17572 |
17571 | 17573 |
17572 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 17574 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
17573 Instance::PrintToJSONStream(stream, ref); | 17575 Instance::PrintToJSONStream(stream, ref); |
17574 } | 17576 } |
17575 | 17577 |
17576 | 17578 |
17577 } // namespace dart | 17579 } // namespace dart |
OLD | NEW |