OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #ifndef VM_ASSEMBLER_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 static bool sse4_1_supported_; | 315 static bool sse4_1_supported_; |
316 #ifdef DEBUG | 316 #ifdef DEBUG |
317 static bool initialized_; | 317 static bool initialized_; |
318 #endif | 318 #endif |
319 }; | 319 }; |
320 | 320 |
321 | 321 |
322 class Assembler : public ValueObject { | 322 class Assembler : public ValueObject { |
323 public: | 323 public: |
324 Assembler() | 324 explicit Assembler(bool use_far_branches = false) |
325 : buffer_(), | 325 : buffer_(), |
326 object_pool_(GrowableObjectArray::Handle()), | 326 object_pool_(GrowableObjectArray::Handle()), |
327 prologue_offset_(-1), | 327 prologue_offset_(-1), |
328 comments_() { } | 328 comments_() { } |
329 ~Assembler() { } | 329 ~Assembler() { } |
330 | 330 |
331 static const bool kNearJump = true; | 331 static const bool kNearJump = true; |
332 static const bool kFarJump = false; | 332 static const bool kFarJump = false; |
333 | 333 |
334 /* | 334 /* |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 } | 929 } |
930 | 930 |
931 | 931 |
932 inline void Assembler::EmitOperandSizeOverride() { | 932 inline void Assembler::EmitOperandSizeOverride() { |
933 EmitUint8(0x66); | 933 EmitUint8(0x66); |
934 } | 934 } |
935 | 935 |
936 } // namespace dart | 936 } // namespace dart |
937 | 937 |
938 #endif // VM_ASSEMBLER_X64_H_ | 938 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |