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

Unified Diff: runtime/vm/object.cc

Issue 356623002: Reduce size of PCDescriptors. Order struct fields so that they do not get padded unnecessarily. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 37664)
+++ runtime/vm/object.cc (working copy)
@@ -10208,56 +10208,6 @@
}
-uword PcDescriptors::PC(intptr_t index) const {
- return static_cast<uword>(*(EntryAddr(index, kPcEntry)));
-}
-
-
-void PcDescriptors::SetPC(intptr_t index, uword value) const {
- *(EntryAddr(index, kPcEntry)) = static_cast<intptr_t>(value);
-}
-
-
-PcDescriptors::Kind PcDescriptors::DescriptorKind(intptr_t index) const {
- return static_cast<PcDescriptors::Kind>(*(EntryAddr(index, kKindEntry)));
-}
-
-
-void PcDescriptors::SetKind(intptr_t index, PcDescriptors::Kind value) const {
- *(EntryAddr(index, kKindEntry)) = value;
-}
-
-
-intptr_t PcDescriptors::DeoptId(intptr_t index) const {
- return *(EntryAddr(index, kDeoptIdEntry));
-}
-
-
-void PcDescriptors::SetDeoptId(intptr_t index, intptr_t value) const {
- *(EntryAddr(index, kDeoptIdEntry)) = value;
-}
-
-
-intptr_t PcDescriptors::TokenPos(intptr_t index) const {
- return *(EntryAddr(index, kTokenPosEntry));
-}
-
-
-void PcDescriptors::SetTokenPos(intptr_t index, intptr_t value) const {
- *(EntryAddr(index, kTokenPosEntry)) = value;
-}
-
-
-intptr_t PcDescriptors::TryIndex(intptr_t index) const {
- return *(EntryAddr(index, kTryIndexEntry));
-}
-
-
-void PcDescriptors::SetTryIndex(intptr_t index, intptr_t value) const {
- *(EntryAddr(index, kTryIndexEntry)) = value;
-}
-
-
RawPcDescriptors* PcDescriptors::New(intptr_t num_descriptors) {
ASSERT(Object::pc_descriptors_class() != Class::null());
if (num_descriptors < 0 || num_descriptors > kMaxElements) {
« runtime/vm/object.h ('K') | « 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