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

Unified Diff: runtime/vm/raw_object.h

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: . Created 3 years, 7 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
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 488739cfbf2f115848aa9a7b095500405043f7be..301d91bc7b2dacca4d1f39230f09623390686787 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -677,10 +677,10 @@ class RawClass : public RawObject {
}
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
- case Snapshot::kCore:
+ case Snapshot::kFull:
case Snapshot::kScript:
- case Snapshot::kAppJIT:
- case Snapshot::kAppAOT:
+ case Snapshot::kFullJIT:
+ case Snapshot::kFullAOT:
return reinterpret_cast<RawObject**>(&ptr()->direct_subclasses_);
case Snapshot::kMessage:
case Snapshot::kNone:
@@ -936,12 +936,12 @@ class RawField : public RawObject {
}
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
- case Snapshot::kCore:
+ case Snapshot::kFull:
case Snapshot::kScript:
return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_);
- case Snapshot::kAppJIT:
+ case Snapshot::kFullJIT:
return reinterpret_cast<RawObject**>(&ptr()->dependent_code_);
- case Snapshot::kAppAOT:
+ case Snapshot::kFullAOT:
return reinterpret_cast<RawObject**>(&ptr()->initializer_);
case Snapshot::kMessage:
case Snapshot::kNone:
@@ -1025,10 +1025,10 @@ class RawScript : public RawObject {
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); }
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
- case Snapshot::kAppAOT:
+ case Snapshot::kFullAOT:
return reinterpret_cast<RawObject**>(&ptr()->url_);
- case Snapshot::kCore:
- case Snapshot::kAppJIT:
+ case Snapshot::kFull:
+ case Snapshot::kFullJIT:
case Snapshot::kScript:
return reinterpret_cast<RawObject**>(&ptr()->tokens_);
case Snapshot::kMessage:
@@ -1518,11 +1518,11 @@ class RawICData : public RawObject {
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->owner_); }
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
- case Snapshot::kAppAOT:
+ case Snapshot::kFullAOT:
return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_);
- case Snapshot::kCore:
+ case Snapshot::kFull:
case Snapshot::kScript:
- case Snapshot::kAppJIT:
+ case Snapshot::kFullJIT:
return to();
case Snapshot::kMessage:
case Snapshot::kNone:
@@ -1639,11 +1639,11 @@ class RawLibraryPrefix : public RawInstance {
}
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
- case Snapshot::kCore:
+ case Snapshot::kFull:
case Snapshot::kScript:
- case Snapshot::kAppJIT:
+ case Snapshot::kFullJIT:
return reinterpret_cast<RawObject**>(&ptr()->imports_);
- case Snapshot::kAppAOT:
+ case Snapshot::kFullAOT:
return reinterpret_cast<RawObject**>(&ptr()->importer_);
case Snapshot::kMessage:
case Snapshot::kNone:

Powered by Google App Engine
This is Rietveld 408576698