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

Unified Diff: runtime/vm/kernel.h

Issue 2901533002: [kernel] Stream everything. Replace .kernel_function with .kernel_offset (Closed)
Patch Set: Fixed assert issues; small refactorings. Created 3 years, 7 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/kernel.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index aa75fafc2a24d67bddb9a2302d43277df600ed26..d3d37dfe72e5f00ffcf9eb76f0460b606d217bee 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -395,7 +395,10 @@ class TreeNode : public Node {
virtual void AcceptVisitor(Visitor* visitor);
virtual void AcceptTreeVisitor(TreeVisitor* visitor) = 0;
- intptr_t kernel_offset() const { return kernel_offset_; }
+ intptr_t kernel_offset() const {
+ ASSERT(kernel_offset_ > 0);
+ return kernel_offset_;
+ }
bool can_stream() { return can_stream_; }
protected:

Powered by Google App Engine
This is Rietveld 408576698