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

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

Issue 11359046: For megamorphic calls (IC calls in optimized code), use a stub without attempting to count usage of… (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/flow_graph_compiler.cc ('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(MegamorphicCall) \
58 V(BreakpointDynamic) \ 59 V(BreakpointDynamic) \
59 V(EqualityWithNullArg) \ 60 V(EqualityWithNullArg) \
60 61
61 // class StubEntry is used to describe stub methods generated in dart to 62 // class StubEntry is used to describe stub methods generated in dart to
62 // abstract out common code executed from generated dart code. 63 // abstract out common code executed from generated dart code.
63 class StubEntry { 64 class StubEntry {
64 public: 65 public:
65 StubEntry(const char* name, const Code& code); 66 StubEntry(const char* name, const Code& code);
66 ~StubEntry() {} 67 ~StubEntry() {}
67 68
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // code executable area. 177 // code executable area.
177 static RawCode* Generate(const char* name, 178 static RawCode* Generate(const char* name,
178 void (*GenerateStub)(Assembler* assembler)); 179 void (*GenerateStub)(Assembler* assembler));
179 180
180 static void GenerateAllocationStubForClass(Assembler* assembler, 181 static void GenerateAllocationStubForClass(Assembler* assembler,
181 const Class& cls); 182 const Class& cls);
182 static void GenerateAllocationStubForClosure(Assembler* assembler, 183 static void GenerateAllocationStubForClosure(Assembler* assembler,
183 const Function& func); 184 const Function& func);
184 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, 185 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler,
185 intptr_t num_args); 186 intptr_t num_args);
187 static void GenerateUsageCounterIncrement(Assembler* assembler,
188 Register ic_reg,
189 Register temp_reg);
186 }; 190 };
187 191
188 } // namespace dart 192 } // namespace dart
189 193
190 #endif // VM_STUB_CODE_H_ 194 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698