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

Unified Diff: runtime/vm/parser.h

Issue 2411823003: VM support for running Kernel binaries. (Closed)
Patch Set: Address initial review comments Created 4 years, 2 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/parser.h
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index 9134bb12058952b5321c64ae913560252d93e0be..60c0a3a567db5827615ee2b0a848b4ef9ad8c0d3 100644
--- a/runtime/vm/parser.h
+++ b/runtime/vm/parser.h
@@ -14,6 +14,7 @@
#include "vm/ast.h"
#include "vm/class_finalizer.h"
#include "vm/compiler_stats.h"
+#include "vm/dil.h"
#include "vm/hash_table.h"
#include "vm/object.h"
#include "vm/raw_object.h"
@@ -22,6 +23,13 @@
namespace dart {
// Forward declarations.
+
+namespace dil {
+
+class ScopeBuildingResult;
+
+} // dil
+
class ArgumentsDescriptor;
class Isolate;
class LocalScope;
@@ -101,7 +109,8 @@ class ParsedFunction : public ZoneAllocated {
first_stack_local_index_(0),
num_copied_params_(0),
num_stack_locals_(0),
- have_seen_await_expr_(false) {
+ have_seen_await_expr_(false),
+ dil_scopes_(NULL) {
ASSERT(function.IsZoneHandle());
// Every function has a local variable for the current context.
LocalVariable* temp = new(zone()) LocalVariable(
@@ -215,6 +224,8 @@ class ParsedFunction : public ZoneAllocated {
void Bailout(const char* origin, const char* reason) const;
+ dil::ScopeBuildingResult* EnsureDilScopes();
+
private:
Thread* thread_;
const Function& function_;
@@ -235,6 +246,8 @@ class ParsedFunction : public ZoneAllocated {
int num_stack_locals_;
bool have_seen_await_expr_;
+ dil::ScopeBuildingResult* dil_scopes_;
+
friend class Parser;
DISALLOW_COPY_AND_ASSIGN(ParsedFunction);
};

Powered by Google App Engine
This is Rietveld 408576698