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

Unified Diff: runtime/vm/code_patcher_arm.cc

Issue 1175523002: Object pool with support for untagged entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/assembler_x64.cc ('k') | runtime/vm/code_patcher_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_arm.cc
diff --git a/runtime/vm/code_patcher_arm.cc b/runtime/vm/code_patcher_arm.cc
index b633fb77a1f0f539c7e816365669f94ae56d8d88..f443c13260de6e8044b328c2831bd76fd3b53d92 100644
--- a/runtime/vm/code_patcher_arm.cc
+++ b/runtime/vm/code_patcher_arm.cc
@@ -86,7 +86,7 @@ class EdgeCounter : public ValueObject {
public:
EdgeCounter(uword pc, const Code& code)
: end_(pc - FlowGraphCompiler::EdgeCounterIncrementSizeInBytes()),
- object_pool_(Array::Handle(code.ObjectPool())) {
+ object_pool_(ObjectPool::Handle(code.GetObjectPool())) {
// An IsValid predicate is complicated and duplicates the code in the
// decoding function. Instead we rely on decoding the pattern which
// will assert partial validity.
@@ -97,7 +97,7 @@ class EdgeCounter : public ValueObject {
intptr_t index;
InstructionPattern::DecodeLoadWordFromPool(end_, &ignored, &index);
ASSERT(ignored == R0);
- return object_pool_.At(index);
+ return object_pool_.ObjectAt(index);
}
private:
@@ -109,7 +109,7 @@ class EdgeCounter : public ValueObject {
static const intptr_t kAdjust = 3 * Instr::kInstrSize;
uword end_;
- const Array& object_pool_;
+ const ObjectPool& object_pool_;
};
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/code_patcher_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698