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

Unified Diff: runtime/vm/kernel.h

Issue 3001093002: Remove some "namespace" classes from C++ Kernel (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | runtime/vm/kernel_binary_flowgraph.h » ('j') | runtime/vm/kernel_binary_flowgraph.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index 13175e802f25d84a66d6306375ef01528be3df8a..de39d432307e2f56fe6e297626b8cf709eaff19f 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -44,75 +44,9 @@ class NameIndex {
int value_;
};
-class Field {
- public:
- enum Flags {
- kFlagFinal = 1 << 0,
- kFlagConst = 1 << 1,
- kFlagStatic = 1 << 2,
- };
-};
-
-class Constructor {
- public:
- enum Flags {
- kFlagConst = 1 << 0,
- kFlagExternal = 1 << 1,
- };
-};
+const uint8_t kNativeYieldFlags = 0x2;
-class Procedure {
- public:
- enum Flags {
- kFlagStatic = 1 << 0,
- kFlagAbstract = 1 << 1,
- kFlagExternal = 1 << 2,
- kFlagConst = 1 << 3, // Only for external const factories.
- };
-
- // Keep in sync with package:dynamo/lib/ast.dart:ProcedureKind
- enum ProcedureKind {
- kMethod,
- kGetter,
- kSetter,
- kOperator,
- kFactory,
-
- kIncompleteProcedure = 255
- };
-};
-
-class FunctionNode {
- public:
- enum AsyncMarker {
- kSync = 0,
- kSyncStar = 1,
- kAsync = 2,
- kAsyncStar = 3,
- kSyncYielding = 4,
- };
-};
-
-class VariableDeclaration {
- public:
- enum Flags {
- kFlagFinal = 1 << 0,
- kFlagConst = 1 << 1,
- };
-};
-
-class YieldStatement {
- public:
- enum {
- kFlagYieldStar = 1 << 0,
- kFlagNative = 1 << 1,
- };
-};
-
-class LogicalExpression {
- public:
- enum Operator { kAnd, kOr };
-};
+enum LogicalOperator { kAnd, kOr };
class Program {
public:
« no previous file with comments | « no previous file | runtime/vm/kernel_binary_flowgraph.h » ('j') | runtime/vm/kernel_binary_flowgraph.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698