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

Side by Side Diff: runtime/vm/disassembler_ia32.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_arm64.cc ('k') | runtime/vm/disassembler_mips.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) 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/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
8 #if defined(TARGET_ARCH_IA32) 8 #if defined(TARGET_ARCH_IA32)
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
11 #include "vm/heap.h" 11 #include "vm/heap.h"
12 #include "vm/os.h" 12 #include "vm/os.h"
13 #include "vm/stack_frame.h" 13 #include "vm/stack_frame.h"
14 #include "vm/stub_code.h" 14 #include "vm/stub_code.h"
15 15
16 namespace dart { 16 namespace dart {
17 17
18 #ifndef PRODUCT
19
18 // Tables used for decoding of x86 instructions. 20 // Tables used for decoding of x86 instructions.
19 enum OperandOrder { 21 enum OperandOrder {
20 UNSET_OP_ORDER = 0, 22 UNSET_OP_ORDER = 0,
21 REG_OPER_OP_ORDER, 23 REG_OPER_OP_ORDER,
22 OPER_REG_OP_ORDER 24 OPER_REG_OP_ORDER
23 }; 25 };
24 26
25 27
26 struct ByteMnemonic { 28 struct ByteMnemonic {
27 int b; // -1 terminates, otherwise must be in range (0..255) 29 int b; // -1 terminates, otherwise must be in range (0..255)
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 OS::SNPrint(&hex_buffer[hex_index], remaining_size, "%02x", pc_ptr[i]); 1857 OS::SNPrint(&hex_buffer[hex_index], remaining_size, "%02x", pc_ptr[i]);
1856 hex_index += 2; 1858 hex_index += 2;
1857 remaining_size -= 2; 1859 remaining_size -= 2;
1858 } 1860 }
1859 hex_buffer[hex_index] = '\0'; 1861 hex_buffer[hex_index] = '\0';
1860 if (out_instr_len) { 1862 if (out_instr_len) {
1861 *out_instr_len = instruction_length; 1863 *out_instr_len = instruction_length;
1862 } 1864 }
1863 } 1865 }
1864 1866
1867 #endif // !PRODUCT
1868
1865 } // namespace dart 1869 } // namespace dart
1866 1870
1867 #endif // defined TARGET_ARCH_IA32 1871 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/disassembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698