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

Side by Side Diff: src/mips/disasm-mips.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A Disassembler object is used to disassemble a block of code instruction by 5 // A Disassembler object is used to disassemble a block of code instruction by
6 // instruction. The default implementation of the NameConverter object can be 6 // instruction. The default implementation of the NameConverter object can be
7 // overriden to modify register names or to do symbol lookup on addresses. 7 // overriden to modify register names or to do symbol lookup on addresses.
8 // 8 //
9 // The example below will disassemble a block of code and print it to stdout. 9 // The example below will disassemble a block of code and print it to stdout.
10 // 10 //
(...skipping 14 matching lines...) Expand all
25 25
26 #include <assert.h> 26 #include <assert.h>
27 #include <stdarg.h> 27 #include <stdarg.h>
28 #include <stdio.h> 28 #include <stdio.h>
29 #include <string.h> 29 #include <string.h>
30 30
31 #include "src/v8.h" 31 #include "src/v8.h"
32 32
33 #if V8_TARGET_ARCH_MIPS 33 #if V8_TARGET_ARCH_MIPS
34 34
35 #include "src/base/platform/platform.h"
35 #include "src/disasm.h" 36 #include "src/disasm.h"
36 #include "src/macro-assembler.h" 37 #include "src/macro-assembler.h"
37 #include "src/mips/constants-mips.h" 38 #include "src/mips/constants-mips.h"
38 #include "src/platform.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 //------------------------------------------------------------------------------ 43 //------------------------------------------------------------------------------
44 44
45 // Decoder decodes and disassembles instructions into an output buffer. 45 // Decoder decodes and disassembles instructions into an output buffer.
46 // It uses the converter to convert register names and call destinations into 46 // It uses the converter to convert register names and call destinations into
47 // more informative description. 47 // more informative description.
48 class Decoder { 48 class Decoder {
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1032 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1033 } 1033 }
1034 } 1034 }
1035 1035
1036 1036
1037 #undef UNSUPPORTED 1037 #undef UNSUPPORTED
1038 1038
1039 } // namespace disasm 1039 } // namespace disasm
1040 1040
1041 #endif // V8_TARGET_ARCH_MIPS 1041 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/base/macros.h ('K') | « src/mips/cpu-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698