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

Side by Side Diff: src/arm64/disasm-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include <assert.h> 5 #include <assert.h>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
11 11
12 #if V8_TARGET_ARCH_ARM64 12 #if V8_TARGET_ARCH_ARM64
13 13
14 #include "src/arm64/decoder-arm64-inl.h" 14 #include "src/arm64/decoder-arm64-inl.h"
15 #include "src/arm64/disasm-arm64.h" 15 #include "src/arm64/disasm-arm64.h"
16 #include "src/base/platform/platform.h"
16 #include "src/disasm.h" 17 #include "src/disasm.h"
17 #include "src/macro-assembler.h" 18 #include "src/macro-assembler.h"
18 #include "src/platform.h"
19 19
20 namespace v8 { 20 namespace v8 {
21 namespace internal { 21 namespace internal {
22 22
23 23
24 Disassembler::Disassembler() { 24 Disassembler::Disassembler() {
25 buffer_size_ = 256; 25 buffer_size_ = 256;
26 buffer_ = reinterpret_cast<char*>(malloc(buffer_size_)); 26 buffer_ = reinterpret_cast<char*>(malloc(buffer_size_));
27 buffer_pos_ = 0; 27 buffer_pos_ = 0;
28 own_buffer_ = true; 28 own_buffer_ = true;
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 decoder.AppendVisitor(&disasm); 1823 decoder.AppendVisitor(&disasm);
1824 1824
1825 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { 1825 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) {
1826 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); 1826 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc));
1827 } 1827 }
1828 } 1828 }
1829 1829
1830 } // namespace disasm 1830 } // namespace disasm
1831 1831
1832 #endif // V8_TARGET_ARCH_ARM64 1832 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/cpu-arm64.cc ('k') | src/arm64/macro-assembler-arm64.cc » ('j') | src/base/cpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698