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

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

Issue 99573005: Add mutable double boxes for fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/object.h ('k') | no next file » | 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 5837 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698