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

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

Issue 23512004: Revert "Compress memory usage. Imprive speed of finding exception handle..." (Closed) Base URL: https://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 8625 matching lines...) Expand 10 before | Expand all | Expand 10 after
8636 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) { 8636 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) {
8637 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); 8637 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment);
8638 } 8638 }
8639 8639
8640 8640
8641 Code::Comments::Comments(const Array& comments) 8641 Code::Comments::Comments(const Array& comments)
8642 : comments_(comments) { 8642 : comments_(comments) {
8643 } 8643 }
8644 8644
8645 8645
8646 void Code::set_state_bits(intptr_t bits) const {
8647 raw_ptr()->state_bits_ = bits;
8648 }
8649
8650
8651 void Code::set_is_optimized(bool value) const {
8652 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_));
8653 }
8654
8655
8656 void Code::set_is_alive(bool value) const {
8657 set_state_bits(AliveBit::update(value, raw_ptr()->state_bits_));
8658 }
8659
8660
8661 void Code::set_stackmaps(const Array& maps) const { 8646 void Code::set_stackmaps(const Array& maps) const {
8662 ASSERT(maps.IsOld()); 8647 ASSERT(maps.IsOld());
8663 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); 8648 StorePointer(&raw_ptr()->stackmaps_, maps.raw());
8664 } 8649 }
8665 8650
8666 8651
8667 void Code::set_deopt_info_array(const Array& array) const { 8652 void Code::set_deopt_info_array(const Array& array) const {
8668 ASSERT(array.IsOld()); 8653 ASSERT(array.IsOld());
8669 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); 8654 StorePointer(&raw_ptr()->deopt_info_array_, array.raw());
8670 } 8655 }
(...skipping 6231 matching lines...) Expand 10 before | Expand all | Expand 10 after
14902 } 14887 }
14903 14888
14904 14889
14905 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14890 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14906 stream->OpenObject(); 14891 stream->OpenObject();
14907 stream->CloseObject(); 14892 stream->CloseObject();
14908 } 14893 }
14909 14894
14910 14895
14911 } // namespace dart 14896 } // 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