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

Unified Diff: runtime/vm/object.h

Issue 2628693004: TokenPositions on more nodes when running from Kernel (Closed)
Patch Set: Changes based on feedback Created 3 years, 11 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 2726cf558e10e2a03cae875d0a85247fd9680f21..61a8051b8ebcba5e3b76764371117ce469bb924f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3548,7 +3548,10 @@ class Script : public Object {
}
void set_compile_time_constants(const Array& value) const;
- RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
+ RawTokenStream* tokens() const {
+ ASSERT(kind() != RawScript::kKernelTag);
+ return raw_ptr()->tokens_;
+ }
void set_line_starts(const Array& value) const;

Powered by Google App Engine
This is Rietveld 408576698