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

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

Issue 22825023: Uses an object pool on x64 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/stack_frame_x64.h ('k') | runtime/vm/stub_code_x64.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 #define STUB_CODE_ENTRY(name) \ 176 #define STUB_CODE_ENTRY(name) \
177 static StubEntry* name##_entry_; 177 static StubEntry* name##_entry_;
178 VM_STUB_CODE_LIST(STUB_CODE_ENTRY); 178 VM_STUB_CODE_LIST(STUB_CODE_ENTRY);
179 #undef STUB_CODE_ENTRY 179 #undef STUB_CODE_ENTRY
180 180
181 #define STUB_CODE_ENTRY(name) \ 181 #define STUB_CODE_ENTRY(name) \
182 StubEntry* name##_entry_; 182 StubEntry* name##_entry_;
183 STUB_CODE_LIST(STUB_CODE_ENTRY); 183 STUB_CODE_LIST(STUB_CODE_ENTRY);
184 #undef STUB_CODE_ENTRY 184 #undef STUB_CODE_ENTRY
185 // This dummy field is needed so that we can intialize the stubs from a macro. 185 // This dummy field is needed so that we can initialize
186 // the stubs from a macro.
186 void* dummy_; 187 void* dummy_;
187 188
188 // Generate the stub and finalize the generated code into the stub 189 // Generate the stub and finalize the generated code into the stub
189 // code executable area. 190 // code executable area.
190 static RawCode* Generate(const char* name, 191 static RawCode* Generate(const char* name,
191 void (*GenerateStub)(Assembler* assembler)); 192 void (*GenerateStub)(Assembler* assembler));
192 193
193 static void GenerateMegamorphicMissStub(Assembler* assembler); 194 static void GenerateMegamorphicMissStub(Assembler* assembler);
194 static void GenerateAllocationStubForClass(Assembler* assembler, 195 static void GenerateAllocationStubForClass(Assembler* assembler,
195 const Class& cls); 196 const Class& cls);
(...skipping 11 matching lines...) Expand all
207 Assembler* assembler, 208 Assembler* assembler,
208 const Register left, 209 const Register left,
209 const Register right, 210 const Register right,
210 const Register temp1 = kNoRegister, 211 const Register temp1 = kNoRegister,
211 const Register temp2 = kNoRegister); 212 const Register temp2 = kNoRegister);
212 }; 213 };
213 214
214 } // namespace dart 215 } // namespace dart
215 216
216 #endif // VM_STUB_CODE_H_ 217 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/stack_frame_x64.h ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698