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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 1147303002: Support untagged object pool entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rebased Created 5 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/deopt_instructions.cc
diff --git a/runtime/vm/deopt_instructions.cc b/runtime/vm/deopt_instructions.cc
index 22ecaf5019ec47352c646a2c553e15aa068fd56f..fdbeef884524a5191470a30ed1eb62df850bb71e 100644
--- a/runtime/vm/deopt_instructions.cc
+++ b/runtime/vm/deopt_instructions.cc
@@ -27,7 +27,7 @@ DeoptContext::DeoptContext(const StackFrame* frame,
fpu_register_t* fpu_registers,
intptr_t* cpu_registers)
: code_(code.raw()),
- object_pool_(code.ObjectPool()),
+ object_pool_(code.GetObjectPool()),
deopt_info_(TypedData::null()),
dest_frame_is_allocated_(false),
dest_frame_(NULL),
@@ -774,7 +774,7 @@ class DeoptMaterializeObjectInstr : public DeoptInstr {
uword DeoptInstr::GetRetAddress(DeoptInstr* instr,
- const Array& object_table,
+ const ObjectPool& object_table,
Code* code) {
ASSERT(instr->kind() == kRetAddress);
DeoptRetAddressInstr* ret_address_instr =
@@ -786,7 +786,7 @@ uword DeoptInstr::GetRetAddress(DeoptInstr* instr,
Thread* thread = Thread::Current();
Zone* zone = thread->zone();
Function& function = Function::Handle(zone);
- function ^= object_table.At(ret_address_instr->object_table_index());
+ function ^= object_table.ObjectAt(ret_address_instr->object_table_index());
ASSERT(code != NULL);
const Error& error = Error::Handle(zone,
Compiler::EnsureUnoptimizedCode(thread, function));
@@ -937,7 +937,7 @@ DeoptInfoBuilder::DeoptInfoBuilder(Zone* zone,
intptr_t DeoptInfoBuilder::FindOrAddObjectInTable(const Object& obj) const {
- return assembler_->object_pool().FindObject(obj, kNotPatchable);
+ return assembler_->object_pool().FindObject(obj);
}

Powered by Google App Engine
This is Rietveld 408576698