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

Unified Diff: runtime/vm/object.h

Issue 2982603002: [profiler] Avoid allocating ~2 MB of handles when processing the sample buffer. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index e7316e74a049d32c0e6685c58185edadb25173f9..52d135e3870b5294f5cb5f038a6432c9a0e30f6a 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -4692,8 +4692,7 @@ class Code : public Object {
void set_is_alive(bool value) const;
uword PayloadStart() const {
- const Instructions& instr = Instructions::Handle(instructions());
- return instr.PayloadStart();
+ return Instructions::PayloadStart(instructions());
}
uword UncheckedEntryPoint() const {
const Instructions& instr = Instructions::Handle(instructions());
@@ -4703,10 +4702,7 @@ class Code : public Object {
const Instructions& instr = Instructions::Handle(instructions());
return instr.CheckedEntryPoint();
}
- intptr_t Size() const {
- const Instructions& instr = Instructions::Handle(instructions());
- return instr.Size();
- }
+ intptr_t Size() const { return Instructions::Size(instructions()); }
RawObjectPool* GetObjectPool() const { return object_pool(); }
bool ContainsInstructionAt(uword addr) const {
const Instructions& instr = Instructions::Handle(instructions());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698