Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: runtime/vm/object.cc

Issue 292433008: Allows unboxed doubles to be disabled. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698