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

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

Issue 1311403009: More precompiled snapshotting. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 3 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
« runtime/vm/snapshot.cc ('K') | « runtime/vm/snapshot.cc ('k') | no next file » | 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested); 130 static const StubEntry* UnoptimizedStaticCallEntry(intptr_t num_args_tested);
131 131
132 static const intptr_t kNoInstantiator = 0; 132 static const intptr_t kNoInstantiator = 0;
133 133
134 static void EmitMegamorphicLookup( 134 static void EmitMegamorphicLookup(
135 Assembler*, Register recv, Register cache, Register target); 135 Assembler*, Register recv, Register cache, Register target);
136 136
137 private: 137 private:
138 friend class MegamorphicCacheTable; 138 friend class MegamorphicCacheTable;
139 friend class VmIsolateSnapshotReader;
139 140
140 static const intptr_t kStubCodeSize = 4 * KB; 141 static const intptr_t kStubCodeSize = 4 * KB;
141 142
142 #define STUB_CODE_GENERATE(name) \ 143 #define STUB_CODE_GENERATE(name) \
143 static void Generate##name##Stub(Assembler* assembler); 144 static void Generate##name##Stub(Assembler* assembler);
144 VM_STUB_CODE_LIST(STUB_CODE_GENERATE); 145 VM_STUB_CODE_LIST(STUB_CODE_GENERATE);
145 #undef STUB_CODE_GENERATE 146 #undef STUB_CODE_GENERATE
146 147
147 #define STUB_CODE_ENTRY(name) \ 148 #define STUB_CODE_ENTRY(name) \
148 static StubEntry* name##_entry_; 149 static StubEntry* name##_entry_;
(...skipping 22 matching lines...) Expand all
171 RangeCollectionMode range_collection_mode, 172 RangeCollectionMode range_collection_mode,
172 bool optimized = false); 173 bool optimized = false);
173 static void GenerateUsageCounterIncrement(Assembler* assembler, 174 static void GenerateUsageCounterIncrement(Assembler* assembler,
174 Register temp_reg); 175 Register temp_reg);
175 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); 176 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler);
176 }; 177 };
177 178
178 } // namespace dart 179 } // namespace dart
179 180
180 #endif // VM_STUB_CODE_H_ 181 #endif // VM_STUB_CODE_H_
OLDNEW
« runtime/vm/snapshot.cc ('K') | « runtime/vm/snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698