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

Side by Side Diff: runtime/vm/snapshot.h

Issue 1352733002: Remove some more embedded pointers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('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 #ifndef VM_SNAPSHOT_H_ 5 #ifndef VM_SNAPSHOT_H_
6 #define VM_SNAPSHOT_H_ 6 #define VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 RawCode* raw_code_; 848 RawCode* raw_code_;
849 const Code* code_; 849 const Code* code_;
850 }; 850 };
851 }; 851 };
852 852
853 void WriteWordLiteral(uword value) { 853 void WriteWordLiteral(uword value) {
854 // Padding is helpful for comparing the .S with --disassemble. 854 // Padding is helpful for comparing the .S with --disassemble.
855 #if defined(ARCH_IS_64_BIT) 855 #if defined(ARCH_IS_64_BIT)
856 stream_.Print(".quad 0x%0.16" Px "\n", value); 856 stream_.Print(".quad 0x%0.16" Px "\n", value);
857 #else 857 #else
858 stream_.Print(".word 0x%0.8" Px "\n", value); 858 stream_.Print(".long 0x%0.8" Px "\n", value);
859 #endif 859 #endif
860 } 860 }
861 861
862 WriteStream stream_; 862 WriteStream stream_;
863 intptr_t next_offset_; 863 intptr_t next_offset_;
864 GrowableArray<InstructionsData> instructions_; 864 GrowableArray<InstructionsData> instructions_;
865 865
866 DISALLOW_COPY_AND_ASSIGN(InstructionsWriter); 866 DISALLOW_COPY_AND_ASSIGN(InstructionsWriter);
867 }; 867 };
868 868
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 private: 1130 private:
1131 SnapshotWriter* writer_; 1131 SnapshotWriter* writer_;
1132 bool as_references_; 1132 bool as_references_;
1133 1133
1134 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1134 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1135 }; 1135 };
1136 1136
1137 } // namespace dart 1137 } // namespace dart
1138 1138
1139 #endif // VM_SNAPSHOT_H_ 1139 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698