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

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

Issue 1663163003: Initial split of precompilation code from compiler.cc (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 4 years, 10 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/dart_api_impl.cc ('k') | runtime/vm/disassembler.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_DISASSEMBLER_H_ 5 #ifndef VM_DISASSEMBLER_H_
6 #define VM_DISASSEMBLER_H_ 6 #define VM_DISASSEMBLER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Decodes one instruction. 129 // Decodes one instruction.
130 // Writes a hexadecimal representation into the hex_buffer and a 130 // Writes a hexadecimal representation into the hex_buffer and a
131 // human-readable representation into the human_buffer. 131 // human-readable representation into the human_buffer.
132 // Writes the length of the decoded instruction in bytes in out_instr_len. 132 // Writes the length of the decoded instruction in bytes in out_instr_len.
133 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size, 133 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size,
134 char* human_buffer, intptr_t human_size, 134 char* human_buffer, intptr_t human_size,
135 int* out_instr_len, uword pc); 135 int* out_instr_len, uword pc);
136 136
137 static bool CanFindOldObject(uword addr); 137 static bool CanFindOldObject(uword addr);
138 138
139 static void DisassembleCode(const Function& function, bool optimized);
140
139 private: 141 private:
140 static const int kHexadecimalBufferSize = 32; 142 static const int kHexadecimalBufferSize = 32;
141 static const int kUserReadableBufferSize = 256; 143 static const int kUserReadableBufferSize = 256;
142 }; 144 };
143 145
144 } // namespace dart 146 } // namespace dart
145 147
146 #endif // VM_DISASSEMBLER_H_ 148 #endif // VM_DISASSEMBLER_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698