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

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

Issue 1147303002: Support untagged object pool entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 5 years, 7 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) 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 // Classes that describe assembly patterns as used by inline caches. 4 // Classes that describe assembly patterns as used by inline caches.
5 5
6 #ifndef VM_INSTRUCTIONS_X64_H_ 6 #ifndef VM_INSTRUCTIONS_X64_H_
7 #define VM_INSTRUCTIONS_X64_H_ 7 #define VM_INSTRUCTIONS_X64_H_
8 8
9 #ifndef VM_INSTRUCTIONS_H_ 9 #ifndef VM_INSTRUCTIONS_H_
10 #error Do not include instructions_ia32.h directly; use instructions.h instead. 10 #error Do not include instructions_ia32.h directly; use instructions.h instead.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const uword start_; 53 const uword start_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(InstructionPattern); 55 DISALLOW_COPY_AND_ASSIGN(InstructionPattern);
56 }; 56 };
57 57
58 58
59 class JumpPattern : public InstructionPattern { 59 class JumpPattern : public InstructionPattern {
60 public: 60 public:
61 JumpPattern(uword pc, const Code& code) 61 JumpPattern(uword pc, const Code& code)
62 : InstructionPattern(pc), 62 : InstructionPattern(pc),
63 object_pool_(Array::Handle(code.ObjectPool())) {} 63 object_pool_(ObjectPool::Handle(code.GetObjectPool())) {}
64 static int InstructionLength() { 64 static int InstructionLength() {
65 return kLengthInBytes; 65 return kLengthInBytes;
66 } 66 }
67 uword TargetAddress() const; 67 uword TargetAddress() const;
68 void SetTargetAddress(uword new_target) const; 68 void SetTargetAddress(uword new_target) const;
69 virtual int pattern_length_in_bytes() const { 69 virtual int pattern_length_in_bytes() const {
70 return kLengthInBytes; 70 return kLengthInBytes;
71 } 71 }
72 72
73 static const int kLengthInBytes = 7; 73 static const int kLengthInBytes = 7;
74 private: 74 private:
75 virtual const int* pattern() const; 75 virtual const int* pattern() const;
76 const Array& object_pool_; 76 const ObjectPool& object_pool_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(JumpPattern); 78 DISALLOW_COPY_AND_ASSIGN(JumpPattern);
79 }; 79 };
80 80
81 81
82 // 5 byte call instruction. 82 // 5 byte call instruction.
83 class ShortCallPattern : public InstructionPattern { 83 class ShortCallPattern : public InstructionPattern {
84 public: 84 public:
85 explicit ShortCallPattern(uword pc) : InstructionPattern(pc) {} 85 explicit ShortCallPattern(uword pc) : InstructionPattern(pc) {}
86 static int InstructionLength() { 86 static int InstructionLength() {
(...skipping 21 matching lines...) Expand all
108 virtual const int* pattern() const; 108 virtual const int* pattern() const;
109 virtual int pattern_length_in_bytes() const { return kLengthInBytes; } 109 virtual int pattern_length_in_bytes() const { return kLengthInBytes; }
110 110
111 private: 111 private:
112 static const int kLengthInBytes = 1; 112 static const int kLengthInBytes = 1;
113 }; 113 };
114 114
115 } // namespace dart 115 } // namespace dart
116 116
117 #endif // VM_INSTRUCTIONS_X64_H_ 117 #endif // VM_INSTRUCTIONS_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698