| OLD | NEW |
| 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 /// \file | 21 /// \file |
| 22 /// This file implements the Assembler base class. | 22 /// \brief Implements the Assembler base class. |
| 23 /// | 23 /// |
| 24 //===----------------------------------------------------------------------===// | 24 //===----------------------------------------------------------------------===// |
| 25 | 25 |
| 26 #include "IceAssembler.h" | 26 #include "IceAssembler.h" |
| 27 | 27 |
| 28 #include "IceGlobalContext.h" | 28 #include "IceGlobalContext.h" |
| 29 #include "IceOperand.h" | 29 #include "IceOperand.h" |
| 30 | 30 |
| 31 namespace Ice { | 31 namespace Ice { |
| 32 | 32 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 // Handle any bytes that are not prefixed by a fixup. | 149 // Handle any bytes that are not prefixed by a fixup. |
| 150 for (intptr_t i = CurPosition; i < EndPosition; ++i) { | 150 for (intptr_t i = CurPosition; i < EndPosition; ++i) { |
| 151 Str << "\t.byte 0x"; | 151 Str << "\t.byte 0x"; |
| 152 Str.write_hex(Buffer.load<uint8_t>(i)); | 152 Str.write_hex(Buffer.load<uint8_t>(i)); |
| 153 Str << "\n"; | 153 Str << "\n"; |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // end of namespace Ice | 157 } // end of namespace Ice |
| OLD | NEW |