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

Unified Diff: runtime/vm/deopt_instructions.h

Issue 1678203002: Remove more feature in product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.h
diff --git a/runtime/vm/deopt_instructions.h b/runtime/vm/deopt_instructions.h
index 3dd538f311a81b94a137ebdf1f53aabc69b4a03a..229a0aaec1c985cd2221ef60bf7a3624408b91f8 100644
--- a/runtime/vm/deopt_instructions.h
+++ b/runtime/vm/deopt_instructions.h
@@ -485,7 +485,10 @@ class DeoptInfoBuilder : public ValueObject {
intptr_t CalculateStackIndex(const Location& source_loc) const;
intptr_t FrameSize() const {
- return instructions_.length() - frame_start_;
+ ASSERT(frame_start_ != -1);
+ const intptr_t frame_size = instructions_.length() - frame_start_;
+ ASSERT(frame_size >= 0);
+ return frame_size;
}
void AddConstant(const Object& obj, intptr_t dest_index);
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698