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

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

Issue 12740003: A CL that only removes dead code from the VM compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « no previous file | runtime/vm/deopt_instructions.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_DEOPT_INSTRUCTIONS_H_ 5 #ifndef VM_DEOPT_INSTRUCTIONS_H_
6 #define VM_DEOPT_INSTRUCTIONS_H_ 6 #define VM_DEOPT_INSTRUCTIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_generator.h" 10 #include "vm/code_generator.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void AddReturnAddressBefore(const Function& function, 158 void AddReturnAddressBefore(const Function& function,
159 intptr_t deopt_id, 159 intptr_t deopt_id,
160 intptr_t to_index); 160 intptr_t to_index);
161 161
162 // Return address after instruction. 162 // Return address after instruction.
163 void AddReturnAddressAfter(const Function& function, 163 void AddReturnAddressAfter(const Function& function,
164 intptr_t deopt_id, 164 intptr_t deopt_id,
165 intptr_t to_index); 165 intptr_t to_index);
166 166
167 // Copy from optimized frame to unoptimized. 167 // Copy from optimized frame to unoptimized.
168 void AddCopy(const Location& from_loc, 168 void AddCopy(const Location& from_loc, intptr_t to_index);
169 const Value& from_value,
170 intptr_t to_index);
171 void AddPcMarker(const Function& function, intptr_t to_index); 169 void AddPcMarker(const Function& function, intptr_t to_index);
172 void AddCallerFp(intptr_t to_index); 170 void AddCallerFp(intptr_t to_index);
173 void AddCallerPc(intptr_t to_index); 171 void AddCallerPc(intptr_t to_index);
174 172
175 RawDeoptInfo* CreateDeoptInfo(); 173 RawDeoptInfo* CreateDeoptInfo();
176 174
177 private: 175 private:
178 class TrieNode; 176 class TrieNode;
179 177
180 intptr_t FindOrAddObjectInTable(const Object& obj) const; 178 intptr_t FindOrAddObjectInTable(const Object& obj) const;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 DeoptInfo* info, 216 DeoptInfo* info,
219 Smi* reason); 217 Smi* reason);
220 218
221 private: 219 private:
222 static const intptr_t kEntrySize = 3; 220 static const intptr_t kEntrySize = 3;
223 }; 221 };
224 222
225 } // namespace dart 223 } // namespace dart
226 224
227 #endif // VM_DEOPT_INSTRUCTIONS_H_ 225 #endif // VM_DEOPT_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698