2012-10-11 07:17:09 +00:00
|
|
|
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2016-10-26 07:26:03 +00:00
|
|
|
#ifndef RUNTIME_VM_VERSION_H_
|
|
|
|
#define RUNTIME_VM_VERSION_H_
|
2012-10-11 07:17:09 +00:00
|
|
|
|
|
|
|
#include "vm/allocation.h"
|
|
|
|
|
|
|
|
namespace dart {
|
|
|
|
|
|
|
|
class Version : public AllStatic {
|
|
|
|
public:
|
2013-05-07 07:59:03 +00:00
|
|
|
static const char* String();
|
2014-08-27 21:38:41 +00:00
|
|
|
static const char* SnapshotString();
|
2016-12-17 00:00:17 +00:00
|
|
|
static const char* CommitString();
|
2019-03-05 17:16:11 +00:00
|
|
|
static int CurrentAbiVersion();
|
|
|
|
static int OldestSupportedAbiVersion();
|
2012-10-11 07:17:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
static const char* str_;
|
2014-09-09 01:44:48 +00:00
|
|
|
static const char* snapshot_hash_;
|
2016-12-17 00:00:17 +00:00
|
|
|
static const char* commit_;
|
2012-10-11 07:17:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dart
|
|
|
|
|
2016-10-26 07:26:03 +00:00
|
|
|
#endif // RUNTIME_VM_VERSION_H_
|