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

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

Issue 19774007: Collect both arguments for math's min/max static functions. Later that information will be used to … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/object.cc ('k') | runtime/vm/stub_code_arm.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(OneArgOptimizedCheckInlineCache) \ 60 V(OneArgOptimizedCheckInlineCache) \
61 V(TwoArgsOptimizedCheckInlineCache) \ 61 V(TwoArgsOptimizedCheckInlineCache) \
62 V(ThreeArgsOptimizedCheckInlineCache) \ 62 V(ThreeArgsOptimizedCheckInlineCache) \
63 V(ClosureCallInlineCache) \ 63 V(ClosureCallInlineCache) \
64 V(MegamorphicCall) \ 64 V(MegamorphicCall) \
65 V(UnoptimizedStaticCall) \ 65 V(ZeroArgsUnoptimizedStaticCall) \
66 V(TwoArgsUnoptimizedStaticCall) \
66 V(OptimizeFunction) \ 67 V(OptimizeFunction) \
67 V(BreakpointDynamic) \ 68 V(BreakpointDynamic) \
68 V(EqualityWithNullArg) \ 69 V(EqualityWithNullArg) \
69 70
70 // class StubEntry is used to describe stub methods generated in dart to 71 // class StubEntry is used to describe stub methods generated in dart to
71 // abstract out common code executed from generated dart code. 72 // abstract out common code executed from generated dart code.
72 class StubEntry { 73 class StubEntry {
73 public: 74 public:
74 StubEntry(const char* name, const Code& code); 75 StubEntry(const char* name, const Code& code);
75 ~StubEntry() {} 76 ~StubEntry() {}
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Generate the stub and finalize the generated code into the stub 187 // Generate the stub and finalize the generated code into the stub
187 // code executable area. 188 // code executable area.
188 static RawCode* Generate(const char* name, 189 static RawCode* Generate(const char* name,
189 void (*GenerateStub)(Assembler* assembler)); 190 void (*GenerateStub)(Assembler* assembler));
190 191
191 static void GenerateMegamorphicMissStub(Assembler* assembler); 192 static void GenerateMegamorphicMissStub(Assembler* assembler);
192 static void GenerateAllocationStubForClass(Assembler* assembler, 193 static void GenerateAllocationStubForClass(Assembler* assembler,
193 const Class& cls); 194 const Class& cls);
194 static void GenerateAllocationStubForClosure(Assembler* assembler, 195 static void GenerateAllocationStubForClosure(Assembler* assembler,
195 const Function& func); 196 const Function& func);
196 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, 197 static void GenerateNArgsCheckInlineCacheStub(
197 intptr_t num_args); 198 Assembler* assembler,
199 intptr_t num_args,
200 const RuntimeEntry& handle_ic_miss);
198 static void GenerateUsageCounterIncrement(Assembler* assembler, 201 static void GenerateUsageCounterIncrement(Assembler* assembler,
199 Register temp_reg); 202 Register temp_reg);
200 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); 203 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler);
201 204
202 static void GenerateIdenticalWithNumberCheckStub( 205 static void GenerateIdenticalWithNumberCheckStub(
203 Assembler* assembler, 206 Assembler* assembler,
204 const Register left, 207 const Register left,
205 const Register right, 208 const Register right,
206 const Register temp1 = kNoRegister, 209 const Register temp1 = kNoRegister,
207 const Register temp2 = kNoRegister); 210 const Register temp2 = kNoRegister);
208 }; 211 };
209 212
210 } // namespace dart 213 } // namespace dart
211 214
212 #endif // VM_STUB_CODE_H_ 215 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698