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

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

Issue 365983002: Make isolate specific stub code accessors instance methods instead (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_STUB_CODE_H_ 5 #ifndef VM_STUB_CODE_H_
6 #define VM_STUB_CODE_H_ 6 #define VM_STUB_CODE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return name##_entry()->EntryPoint(); \ 133 return name##_entry()->EntryPoint(); \
134 } \ 134 } \
135 static intptr_t name##Size() { \ 135 static intptr_t name##Size() { \
136 return name##_entry()->Size(); \ 136 return name##_entry()->Size(); \
137 } 137 }
138 VM_STUB_CODE_LIST(STUB_CODE_ACCESSOR); 138 VM_STUB_CODE_LIST(STUB_CODE_ACCESSOR);
139 #undef STUB_CODE_ACCESSOR 139 #undef STUB_CODE_ACCESSOR
140 140
141 // Define the per-isolate stub code accessors. 141 // Define the per-isolate stub code accessors.
142 #define STUB_CODE_ACCESSOR(name) \ 142 #define STUB_CODE_ACCESSOR(name) \
143 static StubEntry* name##_entry() { \ 143 StubEntry* name##_entry() { \
144 return Isolate::Current()->stub_code()->name##_entry_; \ 144 return name##_entry_; \
145 } \ 145 } \
146 static const ExternalLabel& name##Label() { \ 146 const ExternalLabel& name##Label() { \
147 return name##_entry()->label(); \ 147 return name##_entry()->label(); \
148 } \ 148 } \
149 static uword name##EntryPoint() { \ 149 uword name##EntryPoint() { \
150 return name##_entry()->EntryPoint(); \ 150 return name##_entry()->EntryPoint(); \
151 } \ 151 } \
152 static intptr_t name##Size() { \ 152 intptr_t name##Size() { \
153 return name##_entry()->Size(); \ 153 return name##_entry()->Size(); \
154 } 154 }
155 STUB_CODE_LIST(STUB_CODE_ACCESSOR); 155 STUB_CODE_LIST(STUB_CODE_ACCESSOR);
156 #undef STUB_CODE_ACCESSOR 156 #undef STUB_CODE_ACCESSOR
157 157
158 static RawCode* GetAllocationStubForClass(const Class& cls); 158 static RawCode* GetAllocationStubForClass(const Class& cls);
159 159
160 static const intptr_t kNoInstantiator = 0; 160 static const intptr_t kNoInstantiator = 0;
161 161
162 private: 162 private:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Assembler* assembler, 203 Assembler* assembler,
204 const Register left, 204 const Register left,
205 const Register right, 205 const Register right,
206 const Register temp1 = kNoRegister, 206 const Register temp1 = kNoRegister,
207 const Register temp2 = kNoRegister); 207 const Register temp2 = kNoRegister);
208 }; 208 };
209 209
210 } // namespace dart 210 } // namespace dart
211 211
212 #endif // VM_STUB_CODE_H_ 212 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698