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

Unified Diff: runtime/vm/object.cc

Issue 14935005: Implement a variation of scalar replacement for non-escaping allocations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 7 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index aa85a5100bd602ab720682b55655a6e001e6ef9f..1a095e67c87dff0e7fcee1df9c6cbbb5317a29a9 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7528,6 +7528,15 @@ intptr_t DeoptInfo::Instruction(intptr_t index) const {
}
+intptr_t DeoptInfo::FrameSize() const {
+ intptr_t pos = 0;
+ while (Instruction(pos) == DeoptInstr::kMaterializeObject) {
+ pos++;
+ }
+ return TranslationLength() - pos;
+}
+
+
intptr_t DeoptInfo::TranslationLength() const {
intptr_t length = Length();
if (Instruction(length - 1) != DeoptInstr::kSuffix) return length;
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698