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

Side by Side Diff: src/IceAssembler.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. Created 5 years, 6 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 | « no previous file | src/IceAssemblerX8632.cpp » ('j') | src/IceBrowserCompileServer.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceAssembler.cpp - Assembler base class ----------------===// 1 //===- subzero/src/IceAssembler.cpp - Assembler base class ----------------===//
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 // 5 //
6 // Modified by the Subzero authors. 6 // Modified by the Subzero authors.
7 // 7 //
8 // This is forked from Dart revision 39313. 8 // This is forked from Dart revision 39313.
9 // Please update the revision if we merge back changes from Dart. 9 // Please update the revision if we merge back changes from Dart.
10 // https://code.google.com/p/dart/wiki/GettingTheSource 10 // https://code.google.com/p/dart/wiki/GettingTheSource
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 // 13 //
14 // The Subzero Code Generator 14 // The Subzero Code Generator
15 // 15 //
16 // This file is distributed under the University of Illinois Open Source 16 // This file is distributed under the University of Illinois Open Source
17 // License. See LICENSE.TXT for details. 17 // License. See LICENSE.TXT for details.
18 // 18 //
19 //===----------------------------------------------------------------------===// 19 //===----------------------------------------------------------------------===//
20 // 20 //
21 // This file implements the Assembler base class. 21 // This file implements the Assembler base class.
22 // 22 //
23 //===----------------------------------------------------------------------===// 23 //===----------------------------------------------------------------------===//
24 24
25 #include "IceAssembler.h" 25 #include "IceAssembler.h"
26
26 #include "IceGlobalContext.h" 27 #include "IceGlobalContext.h"
27 #include "IceOperand.h" 28 #include "IceOperand.h"
28 29
29 namespace Ice { 30 namespace Ice {
30 31
31 static uintptr_t NewContents(Assembler &Assemblr, intptr_t Capacity) { 32 static uintptr_t NewContents(Assembler &Assemblr, intptr_t Capacity) {
32 uintptr_t Result = Assemblr.allocateBytes(Capacity); 33 uintptr_t Result = Assemblr.allocateBytes(Capacity);
33 return Result; 34 return Result;
34 } 35 }
35 36
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 146 }
146 // Handle any bytes that are not prefixed by a fixup. 147 // Handle any bytes that are not prefixed by a fixup.
147 for (intptr_t i = CurPosition; i < EndPosition; ++i) { 148 for (intptr_t i = CurPosition; i < EndPosition; ++i) {
148 Str << "\t.byte 0x"; 149 Str << "\t.byte 0x";
149 Str.write_hex(Buffer.load<uint8_t>(i)); 150 Str.write_hex(Buffer.load<uint8_t>(i));
150 Str << "\n"; 151 Str << "\n";
151 } 152 }
152 } 153 }
153 154
154 } // end of namespace Ice 155 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceAssemblerX8632.cpp » ('j') | src/IceBrowserCompileServer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698