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

Unified Diff: runtime/vm/snapshot.h

Issue 2580823003: Rename snapshot kind enum values kAppWithJIT -> kAppJIT, kAppNoJIT -> kAppAOT. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index c81098e8c236c4b2bf4c1af9f75e153e75175ac3..b3c087d9ea2a18b905200b9146ae31da8ffbd543 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -152,17 +152,17 @@ enum SerializeState {
class Snapshot {
public:
enum Kind {
- kCore = 0, // Full snapshot of core libraries. No root library, no code.
- kScript, // A partial snapshot of only the application script.
- kMessage, // A partial snapshot used only for isolate messaging.
- kAppWithJIT, // Full snapshot of core libraries and application. Has some
- // code, but may compile in the future because we haven't
- // necessarily included code for every function or to
- // (de)optimize.
- kAppNoJIT, // Full snapshot of core libraries and application. Has
- // complete code for the application that never deopts. Will
- // not compile in the future.
- kNone, // dart_bootstrap/gen_snapshot
+ kCore = 0, // Full snapshot of core libraries. No root library, no code.
+ kScript, // A partial snapshot of only the application script.
+ kMessage, // A partial snapshot used only for isolate messaging.
+ kAppJIT, // Full snapshot of core libraries and application. Has some
+ // code, but may compile in the future because we haven't
+ // necessarily included code for every function or to
+ // (de)optimize.
+ kAppAOT, // Full snapshot of core libraries and application. Has
+ // complete code for the application that never deopts. Will
+ // not compile in the future.
+ kNone, // dart_bootstrap/gen_snapshot
kInvalid
};
static const char* KindToCString(Kind kind);
@@ -183,10 +183,10 @@ class Snapshot {
}
static bool IsFull(Kind kind) {
- return (kind == kCore) || (kind == kAppWithJIT) || (kind == kAppNoJIT);
+ return (kind == kCore) || (kind == kAppJIT) || (kind == kAppAOT);
}
static bool IncludesCode(Kind kind) {
- return (kind == kAppWithJIT) || (kind == kAppNoJIT);
+ return (kind == kAppJIT) || (kind == kAppAOT);
}
uint8_t* Addr() { return reinterpret_cast<uint8_t*>(this); }
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698