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

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

Issue 23691008: Compress memory usage. Imprive speed of finding exception handlers: if a code does not have any han… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/object.h ('k') | runtime/vm/raw_object.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 8611 matching lines...) Expand 10 before | Expand all | Expand 10 after
8622 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) { 8622 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) {
8623 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); 8623 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment);
8624 } 8624 }
8625 8625
8626 8626
8627 Code::Comments::Comments(const Array& comments) 8627 Code::Comments::Comments(const Array& comments)
8628 : comments_(comments) { 8628 : comments_(comments) {
8629 } 8629 }
8630 8630
8631 8631
8632 void Code::set_state_bits(intptr_t bits) const {
8633 raw_ptr()->state_bits_ = bits;
8634 }
8635
8636
8637 void Code::set_is_optimized(bool value) const {
8638 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_));
8639 }
8640
8641
8642 void Code::set_is_alive(bool value) const {
8643 set_state_bits(AliveBit::update(value, raw_ptr()->state_bits_));
8644 }
8645
8646
8632 void Code::set_stackmaps(const Array& maps) const { 8647 void Code::set_stackmaps(const Array& maps) const {
8633 ASSERT(maps.IsOld()); 8648 ASSERT(maps.IsOld());
8634 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); 8649 StorePointer(&raw_ptr()->stackmaps_, maps.raw());
8635 } 8650 }
8636 8651
8637 8652
8638 void Code::set_deopt_info_array(const Array& array) const { 8653 void Code::set_deopt_info_array(const Array& array) const {
8639 ASSERT(array.IsOld()); 8654 ASSERT(array.IsOld());
8640 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); 8655 StorePointer(&raw_ptr()->deopt_info_array_, array.raw());
8641 } 8656 }
(...skipping 6231 matching lines...) Expand 10 before | Expand all | Expand 10 after
14873 } 14888 }
14874 14889
14875 14890
14876 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14891 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14877 stream->OpenObject(); 14892 stream->OpenObject();
14878 stream->CloseObject(); 14893 stream->CloseObject();
14879 } 14894 }
14880 14895
14881 14896
14882 } // namespace dart 14897 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698