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

Unified Diff: runtime/vm/raw_object.h

Issue 335173002: Save ICData of unoptimized code in the function, thus preserving it across repated unoptimized comp… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 37375)
+++ runtime/vm/raw_object.h (working copy)
@@ -616,17 +616,19 @@
RawArray* parameter_types_;
RawArray* parameter_names_;
RawObject* data_; // Additional data specific to the function kind.
+ RawObject** to_snapshot() {
+ return reinterpret_cast<RawObject**>(&ptr()->data_);
+ }
+ // Fields below are not part of the snapshot.
+ RawArray* ic_data_array_; // ICData of unoptimized code.
+ RawObject** to_no_code() {
+ return reinterpret_cast<RawObject**>(&ptr()->ic_data_array_);
+ }
RawInstructions* instructions_; // Instructions of currently active code.
RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization.
RawObject** to() {
return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_);
}
- RawObject** to_no_code() {
- return reinterpret_cast<RawObject**>(&ptr()->data_);
- }
- RawObject** to_snapshot() {
- return reinterpret_cast<RawObject**>(&ptr()->data_);
- }
int32_t token_pos_;
int32_t end_token_pos_;

Powered by Google App Engine
This is Rietveld 408576698