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

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

Issue 11361225: In optimized code use IC calls for instance calls that have no IC data instead of deoptimizing. The… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/raw_object.h ('k') | runtime/vm/stub_code_ia32.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // List of stubs created per isolate, these stubs could potentially contain 49 // List of stubs created per isolate, these stubs could potentially contain
50 // embedded objects and hence cannot be shared across isolates. 50 // embedded objects and hence cannot be shared across isolates.
51 #define STUB_CODE_LIST(V) \ 51 #define STUB_CODE_LIST(V) \
52 V(InvokeDartCode) \ 52 V(InvokeDartCode) \
53 V(AllocateContext) \ 53 V(AllocateContext) \
54 V(UpdateStoreBuffer) \ 54 V(UpdateStoreBuffer) \
55 V(OneArgCheckInlineCache) \ 55 V(OneArgCheckInlineCache) \
56 V(TwoArgsCheckInlineCache) \ 56 V(TwoArgsCheckInlineCache) \
57 V(ThreeArgsCheckInlineCache) \ 57 V(ThreeArgsCheckInlineCache) \
58 V(OneArgOptimizedCheckInlineCache) \
59 V(TwoArgsOptimizedCheckInlineCache) \
60 V(ThreeArgsOptimizedCheckInlineCache) \
61 V(ClosureCallInlineCache) \
58 V(MegamorphicCall) \ 62 V(MegamorphicCall) \
59 V(OptimizeFunction) \ 63 V(OptimizeFunction) \
60 V(BreakpointDynamic) \ 64 V(BreakpointDynamic) \
61 V(EqualityWithNullArg) \ 65 V(EqualityWithNullArg) \
62 66
63 // class StubEntry is used to describe stub methods generated in dart to 67 // class StubEntry is used to describe stub methods generated in dart to
64 // abstract out common code executed from generated dart code. 68 // abstract out common code executed from generated dart code.
65 class StubEntry { 69 class StubEntry {
66 public: 70 public:
67 StubEntry(const char* name, const Code& code); 71 StubEntry(const char* name, const Code& code);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 static RawCode* Generate(const char* name, 183 static RawCode* Generate(const char* name,
180 void (*GenerateStub)(Assembler* assembler)); 184 void (*GenerateStub)(Assembler* assembler));
181 185
182 static void GenerateAllocationStubForClass(Assembler* assembler, 186 static void GenerateAllocationStubForClass(Assembler* assembler,
183 const Class& cls); 187 const Class& cls);
184 static void GenerateAllocationStubForClosure(Assembler* assembler, 188 static void GenerateAllocationStubForClosure(Assembler* assembler,
185 const Function& func); 189 const Function& func);
186 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, 190 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler,
187 intptr_t num_args); 191 intptr_t num_args);
188 static void GenerateUsageCounterIncrement(Assembler* assembler, 192 static void GenerateUsageCounterIncrement(Assembler* assembler,
189 Register ic_reg,
190 Register temp_reg); 193 Register temp_reg);
194 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler);
191 }; 195 };
192 196
193 } // namespace dart 197 } // namespace dart
194 198
195 #endif // VM_STUB_CODE_H_ 199 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698