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

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

Issue 51333006: Reapply "Do not directly load smi constants larger than a 16 bit..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 11
12 #include "platform/assert.h" 12 #include "platform/assert.h"
13 #include "platform/utils.h" 13 #include "platform/utils.h"
14 #include "vm/constants_x64.h" 14 #include "vm/constants_x64.h"
15 #include "vm/hash_map.h" 15 #include "vm/hash_map.h"
16 #include "vm/object.h"
16 17
17 namespace dart { 18 namespace dart {
18 19
19 // Forward declarations. 20 // Forward declarations.
20 class RuntimeEntry; 21 class RuntimeEntry;
21 22
22 class Immediate : public ValueObject { 23 class Immediate : public ValueObject {
23 public: 24 public:
24 explicit Immediate(int64_t value) : value_(value) { } 25 explicit Immediate(int64_t value) : value_(value) { }
25 26
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 void Unimplemented(const char* message); 841 void Unimplemented(const char* message);
841 void Untested(const char* message); 842 void Untested(const char* message);
842 void Unreachable(const char* message); 843 void Unreachable(const char* message);
843 844
844 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length); 845 static void InitializeMemoryWithBreakpoints(uword data, intptr_t length);
845 846
846 static const char* RegisterName(Register reg); 847 static const char* RegisterName(Register reg);
847 848
848 static const char* FpuRegisterName(FpuRegister reg); 849 static const char* FpuRegisterName(FpuRegister reg);
849 850
851 // On some other platforms, we draw a distinction between safe and unsafe
852 // smis.
853 static bool IsSafe(const Object& object) { return true; }
854 static bool IsSafeSmi(const Object& object) { return object.IsSmi(); }
855
850 private: 856 private:
851 AssemblerBuffer buffer_; 857 AssemblerBuffer buffer_;
852 858
853 // Objects and jump targets. 859 // Objects and jump targets.
854 GrowableObjectArray& object_pool_; 860 GrowableObjectArray& object_pool_;
855 861
856 // Patchability of pool entries. 862 // Patchability of pool entries.
857 GrowableArray<Patchability> patchable_pool_entries_; 863 GrowableArray<Patchability> patchable_pool_entries_;
858 864
859 // Pair type parameter for DirectChainedHashMap. 865 // Pair type parameter for DirectChainedHashMap.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 } 1048 }
1043 1049
1044 1050
1045 inline void Assembler::EmitOperandSizeOverride() { 1051 inline void Assembler::EmitOperandSizeOverride() {
1046 EmitUint8(0x66); 1052 EmitUint8(0x66);
1047 } 1053 }
1048 1054
1049 } // namespace dart 1055 } // namespace dart
1050 1056
1051 #endif // VM_ASSEMBLER_X64_H_ 1057 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698