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

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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // List of stubs created per isolate, these stubs could potentially contain 50 // List of stubs created per isolate, these stubs could potentially contain
51 // embedded objects and hence cannot be shared across isolates. 51 // embedded objects and hence cannot be shared across isolates.
52 #define STUB_CODE_LIST(V) \ 52 #define STUB_CODE_LIST(V) \
53 V(AllocateArray) \ 53 V(AllocateArray) \
54 V(CallNoSuchMethodFunction) \ 54 V(CallNoSuchMethodFunction) \
55 V(AllocateContext) \ 55 V(AllocateContext) \
56 V(UpdateStoreBuffer) \ 56 V(UpdateStoreBuffer) \
57 V(OneArgCheckInlineCache) \ 57 V(OneArgCheckInlineCache) \
58 V(TwoArgsCheckInlineCache) \ 58 V(TwoArgsCheckInlineCache) \
59 V(ThreeArgsCheckInlineCache) \ 59 V(ThreeArgsCheckInlineCache) \
60 V(SmiAddInlineCache) \
61 V(SmiSubInlineCache) \
62 V(SmiEqualInlineCache) \
60 V(OneArgOptimizedCheckInlineCache) \ 63 V(OneArgOptimizedCheckInlineCache) \
61 V(TwoArgsOptimizedCheckInlineCache) \ 64 V(TwoArgsOptimizedCheckInlineCache) \
62 V(ThreeArgsOptimizedCheckInlineCache) \ 65 V(ThreeArgsOptimizedCheckInlineCache) \
63 V(ClosureCallInlineCache) \ 66 V(ClosureCallInlineCache) \
64 V(ZeroArgsUnoptimizedStaticCall) \ 67 V(ZeroArgsUnoptimizedStaticCall) \
65 V(TwoArgsUnoptimizedStaticCall) \ 68 V(TwoArgsUnoptimizedStaticCall) \
66 V(OptimizeFunction) \ 69 V(OptimizeFunction) \
67 V(InvokeDartCode) \ 70 V(InvokeDartCode) \
68 71
69 // class StubEntry is used to describe stub methods generated in dart to 72 // class StubEntry is used to describe stub methods generated in dart to
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // code executable area. 195 // code executable area.
193 static RawCode* Generate(const char* name, 196 static RawCode* Generate(const char* name,
194 void (*GenerateStub)(Assembler* assembler)); 197 void (*GenerateStub)(Assembler* assembler));
195 198
196 static void GenerateMegamorphicMissStub(Assembler* assembler); 199 static void GenerateMegamorphicMissStub(Assembler* assembler);
197 static void GenerateAllocationStubForClass(Assembler* assembler, 200 static void GenerateAllocationStubForClass(Assembler* assembler,
198 const Class& cls); 201 const Class& cls);
199 static void GenerateNArgsCheckInlineCacheStub( 202 static void GenerateNArgsCheckInlineCacheStub(
200 Assembler* assembler, 203 Assembler* assembler,
201 intptr_t num_args, 204 intptr_t num_args,
202 const RuntimeEntry& handle_ic_miss); 205 const RuntimeEntry& handle_ic_miss,
206 Token::Kind kind);
203 static void GenerateUsageCounterIncrement(Assembler* assembler, 207 static void GenerateUsageCounterIncrement(Assembler* assembler,
204 Register temp_reg); 208 Register temp_reg);
205 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); 209 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler);
206 210
207 static void GenerateIdenticalWithNumberCheckStub( 211 static void GenerateIdenticalWithNumberCheckStub(
208 Assembler* assembler, 212 Assembler* assembler,
209 const Register left, 213 const Register left,
210 const Register right, 214 const Register right,
211 const Register temp1 = kNoRegister, 215 const Register temp1 = kNoRegister,
212 const Register temp2 = kNoRegister); 216 const Register temp2 = kNoRegister);
213 }; 217 };
214 218
215 } // namespace dart 219 } // namespace dart
216 220
217 #endif // VM_STUB_CODE_H_ 221 #endif // VM_STUB_CODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698