| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_IA32_H_ | 5 #ifndef VM_ASSEMBLER_IA32_H_ |
| 6 #define VM_ASSEMBLER_IA32_H_ | 6 #define VM_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. | 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 int unresolved_near_positions_[kMaxUnresolvedBranches]; | 251 int unresolved_near_positions_[kMaxUnresolvedBranches]; |
| 252 | 252 |
| 253 friend class Assembler; | 253 friend class Assembler; |
| 254 DISALLOW_COPY_AND_ASSIGN(Label); | 254 DISALLOW_COPY_AND_ASSIGN(Label); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 | 257 |
| 258 class CPUFeatures : public AllStatic { | 258 class CPUFeatures : public AllStatic { |
| 259 public: | 259 public: |
| 260 static void InitOnce(); | 260 static void InitOnce(); |
| 261 static bool sse3_supported(); | 261 static bool sse2_supported(); |
| 262 static bool sse4_1_supported(); | 262 static bool sse4_1_supported(); |
| 263 | 263 |
| 264 private: | 264 private: |
| 265 static const uint64_t kSSE3BitMask = static_cast<uint64_t>(1) << 32; | 265 static const uint64_t kSSE2BitMask = static_cast<uint64_t>(1) << 26; |
| 266 static const uint64_t kSSE4_1BitMask = static_cast<uint64_t>(1) << 51; | 266 static const uint64_t kSSE4_1BitMask = static_cast<uint64_t>(1) << 51; |
| 267 | 267 |
| 268 static bool sse3_supported_; | 268 static bool sse2_supported_; |
| 269 static bool sse4_1_supported_; | 269 static bool sse4_1_supported_; |
| 270 #ifdef DEBUG | 270 #ifdef DEBUG |
| 271 static bool initialized_; | 271 static bool initialized_; |
| 272 #endif | 272 #endif |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 | 275 |
| 276 class Assembler : public ValueObject { | 276 class Assembler : public ValueObject { |
| 277 public: | 277 public: |
| 278 Assembler() : buffer_(), prolog_offset_(-1), comments_() { } | 278 Assembler() : buffer_(), prolog_offset_(-1), comments_() { } |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 } | 697 } |
| 698 | 698 |
| 699 | 699 |
| 700 inline void Assembler::EmitOperandSizeOverride() { | 700 inline void Assembler::EmitOperandSizeOverride() { |
| 701 EmitUint8(0x66); | 701 EmitUint8(0x66); |
| 702 } | 702 } |
| 703 | 703 |
| 704 } // namespace dart | 704 } // namespace dart |
| 705 | 705 |
| 706 #endif // VM_ASSEMBLER_IA32_H_ | 706 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |