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

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

Issue 9939003: Use null type argument vector instead of vector of Dynamic for a generic raw (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } \ 138 } \
139 static intptr_t name##Size() { \ 139 static intptr_t name##Size() { \
140 return name##_entry()->Size(); \ 140 return name##_entry()->Size(); \
141 } 141 }
142 STUB_CODE_LIST(STUB_CODE_ACCESSOR); 142 STUB_CODE_LIST(STUB_CODE_ACCESSOR);
143 #undef STUB_CODE_ACCESSOR 143 #undef STUB_CODE_ACCESSOR
144 144
145 static RawCode* GetAllocationStubForClass(const Class& cls); 145 static RawCode* GetAllocationStubForClass(const Class& cls);
146 static RawCode* GetAllocationStubForClosure(const Function& func); 146 static RawCode* GetAllocationStubForClosure(const Function& func);
147 147
148 static const intptr_t kNoInstantiator = 0;
149
148 private: 150 private:
149 static const int kStubCodeSize = 4 * KB; 151 static const intptr_t kStubCodeSize = 4 * KB;
150 152
151 #define STUB_CODE_GENERATE(name) \ 153 #define STUB_CODE_GENERATE(name) \
152 static void Generate##name##Stub(Assembler* assembler); 154 static void Generate##name##Stub(Assembler* assembler);
153 VM_STUB_CODE_LIST(STUB_CODE_GENERATE); 155 VM_STUB_CODE_LIST(STUB_CODE_GENERATE);
154 STUB_CODE_LIST(STUB_CODE_GENERATE); 156 STUB_CODE_LIST(STUB_CODE_GENERATE);
155 #undef STUB_CODE_GENERATE 157 #undef STUB_CODE_GENERATE
156 158
157 #define STUB_CODE_ENTRY(name) \ 159 #define STUB_CODE_ENTRY(name) \
158 static StubEntry* name##_entry_; 160 static StubEntry* name##_entry_;
159 VM_STUB_CODE_LIST(STUB_CODE_ENTRY); 161 VM_STUB_CODE_LIST(STUB_CODE_ENTRY);
(...skipping 15 matching lines...) Expand all
175 const Class& cls); 177 const Class& cls);
176 static void GenerateAllocationStubForClosure(Assembler* assembler, 178 static void GenerateAllocationStubForClosure(Assembler* assembler,
177 const Function& func); 179 const Function& func);
178 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, 180 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler,
179 intptr_t num_args); 181 intptr_t num_args);
180 }; 182 };
181 183
182 } // namespace dart 184 } // namespace dart
183 185
184 #endif // VM_STUB_CODE_H_ 186 #endif // VM_STUB_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698