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

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
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 8606 matching lines...) Expand 10 before | Expand all | Expand 10 after
8617 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) { 8617 void Code::Comments::SetCommentAt(intptr_t idx, const String& comment) {
8618 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); 8618 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment);
8619 } 8619 }
8620 8620
8621 8621
8622 Code::Comments::Comments(const Array& comments) 8622 Code::Comments::Comments(const Array& comments)
8623 : comments_(comments) { 8623 : comments_(comments) {
8624 } 8624 }
8625 8625
8626 8626
8627 void Code::set_state_bits(intptr_t bits) const {
8628 raw_ptr()->state_bits_ = bits;
8629 }
8630
8631
8632 void Code::set_is_optimized(bool value) const {
8633 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_));
8634 }
8635
8636
8637 void Code::set_is_alive(bool value) const {
8638 set_state_bits(AliveBit::update(value, raw_ptr()->state_bits_));
8639 }
8640
8641
8627 void Code::set_stackmaps(const Array& maps) const { 8642 void Code::set_stackmaps(const Array& maps) const {
8628 ASSERT(maps.IsOld()); 8643 ASSERT(maps.IsOld());
8629 StorePointer(&raw_ptr()->stackmaps_, maps.raw()); 8644 StorePointer(&raw_ptr()->stackmaps_, maps.raw());
8630 } 8645 }
8631 8646
8632 8647
8633 void Code::set_deopt_info_array(const Array& array) const { 8648 void Code::set_deopt_info_array(const Array& array) const {
8634 ASSERT(array.IsOld()); 8649 ASSERT(array.IsOld());
8635 StorePointer(&raw_ptr()->deopt_info_array_, array.raw()); 8650 StorePointer(&raw_ptr()->deopt_info_array_, array.raw());
8636 } 8651 }
(...skipping 6231 matching lines...) Expand 10 before | Expand all | Expand 10 after
14868 } 14883 }
14869 14884
14870 14885
14871 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14886 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14872 stream->OpenObject(); 14887 stream->OpenObject();
14873 stream->CloseObject(); 14888 stream->CloseObject();
14874 } 14889 }
14875 14890
14876 14891
14877 } // namespace dart 14892 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698