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

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

Issue 1678203002: Remove more feature in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/disassembler.cc ('k') | runtime/vm/disassembler_arm64.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
8 #if defined(TARGET_ARCH_ARM) 8 #if defined(TARGET_ARCH_ARM)
9 9
10 #include "platform/assert.h" 10 #include "platform/assert.h"
11 #include "vm/cpu.h" 11 #include "vm/cpu.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 #ifndef PRODUCT
16
15 class ARMDecoder : public ValueObject { 17 class ARMDecoder : public ValueObject {
16 public: 18 public:
17 ARMDecoder(char* buffer, size_t buffer_size) 19 ARMDecoder(char* buffer, size_t buffer_size)
18 : buffer_(buffer), 20 : buffer_(buffer),
19 buffer_size_(buffer_size), 21 buffer_size_(buffer_size),
20 buffer_pos_(0) { 22 buffer_pos_(0) {
21 buffer_[buffer_pos_] = '\0'; 23 buffer_[buffer_pos_] = '\0';
22 } 24 }
23 25
24 ~ARMDecoder() {} 26 ~ARMDecoder() {}
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 int* out_instr_size, uword pc) { 1535 int* out_instr_size, uword pc) {
1534 ARMDecoder decoder(human_buffer, human_size); 1536 ARMDecoder decoder(human_buffer, human_size);
1535 decoder.InstructionDecode(pc); 1537 decoder.InstructionDecode(pc);
1536 int32_t instruction_bits = Instr::At(pc)->InstructionBits(); 1538 int32_t instruction_bits = Instr::At(pc)->InstructionBits();
1537 OS::SNPrint(hex_buffer, hex_size, "%08x", instruction_bits); 1539 OS::SNPrint(hex_buffer, hex_size, "%08x", instruction_bits);
1538 if (out_instr_size) { 1540 if (out_instr_size) {
1539 *out_instr_size = Instr::kInstrSize; 1541 *out_instr_size = Instr::kInstrSize;
1540 } 1542 }
1541 } 1543 }
1542 1544
1545 #endif // !PRODUCT
1546
1543 } // namespace dart 1547 } // namespace dart
1544 1548
1545 #endif // defined TARGET_ARCH_ARM 1549 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/disassembler.cc ('k') | runtime/vm/disassembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698