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

Side by Side Diff: runtime/vm/assembler_x64.h

Issue 1225933002: Remove fixed contant pool entries by caching some global constants in Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 5 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
OLDNEW
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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 intptr_t pc_offset_; 1059 intptr_t pc_offset_;
1060 const String& comment_; 1060 const String& comment_;
1061 1061
1062 DISALLOW_COPY_AND_ASSIGN(CodeComment); 1062 DISALLOW_COPY_AND_ASSIGN(CodeComment);
1063 }; 1063 };
1064 1064
1065 GrowableArray<CodeComment*> comments_; 1065 GrowableArray<CodeComment*> comments_;
1066 bool allow_constant_pool_; 1066 bool allow_constant_pool_;
1067 1067
1068 intptr_t FindImmediate(int64_t imm); 1068 intptr_t FindImmediate(int64_t imm);
1069 bool CanLoadFromObjectPool(const Object& object); 1069 bool CanLoadFromObjectPool(const Object& object) const;
1070 void LoadWordFromPoolOffset(Register dst, Register pp, int32_t offset); 1070 void LoadWordFromPoolOffset(Register dst, Register pp, int32_t offset);
1071 1071
1072 inline void EmitUint8(uint8_t value); 1072 inline void EmitUint8(uint8_t value);
1073 inline void EmitInt32(int32_t value); 1073 inline void EmitInt32(int32_t value);
1074 inline void EmitInt64(int64_t value); 1074 inline void EmitInt64(int64_t value);
1075 1075
1076 inline void EmitRegisterREX(Register reg, uint8_t rex); 1076 inline void EmitRegisterREX(Register reg, uint8_t rex);
1077 inline void EmitOperandREX(int rm, const Operand& operand, uint8_t rex); 1077 inline void EmitOperandREX(int rm, const Operand& operand, uint8_t rex);
1078 inline void EmitXmmRegisterOperand(int rm, XmmRegister reg); 1078 inline void EmitXmmRegisterOperand(int rm, XmmRegister reg);
1079 inline void EmitFixup(AssemblerFixup* fixup); 1079 inline void EmitFixup(AssemblerFixup* fixup);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 } 1200 }
1201 1201
1202 1202
1203 inline void Assembler::EmitOperandSizeOverride() { 1203 inline void Assembler::EmitOperandSizeOverride() {
1204 EmitUint8(0x66); 1204 EmitUint8(0x66);
1205 } 1205 }
1206 1206
1207 } // namespace dart 1207 } // namespace dart
1208 1208
1209 #endif // VM_ASSEMBLER_X64_H_ 1209 #endif // VM_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698