Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index aa7b3ca9dce72c205a391ffb79b038dd3a56c997..9b2e3194209fc655ea93cab4e97204235adb5d27 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -45,7 +45,6 @@ |
#include "vm/timer.h" |
#include "vm/type_table.h" |
#include "vm/unicode.h" |
-#include "vm/verified_memory.h" |
#include "vm/weak_code.h" |
namespace dart { |
@@ -1065,7 +1064,7 @@ void Object::MakeUnusedSpaceTraversable(const Object& obj, |
intptr_t leftover_len = (leftover_size - TypedData::InstanceSize(0)); |
ASSERT(TypedData::InstanceSize(leftover_len) == leftover_size); |
- raw->InitializeSmi(&(raw->ptr()->length_), Smi::New(leftover_len)); |
+ raw->StoreSmi(&(raw->ptr()->length_), Smi::New(leftover_len)); |
} else { |
// Update the leftover space as a basic object. |
ASSERT(leftover_size == Object::InstanceSize()); |
@@ -1799,7 +1798,6 @@ void Object::InitializeObject(uword address, |
tags = RawObject::VMHeapObjectTag::update(is_vm_object, tags); |
reinterpret_cast<RawObject*>(address)->tags_ = tags; |
ASSERT(is_vm_object == RawObject::IsVMHeapObject(tags)); |
- VerifiedMemory::Accept(address, size); |
} |
@@ -1918,7 +1916,6 @@ RawObject* Object::Clone(const Object& orig, Heap::Space space) { |
memmove(reinterpret_cast<uint8_t*>(clone_addr + kHeaderSizeInBytes), |
reinterpret_cast<uint8_t*>(orig_addr + kHeaderSizeInBytes), |
size - kHeaderSizeInBytes); |
- VerifiedMemory::Accept(clone_addr, size); |
// Add clone to store buffer, if needed. |
if (!raw_clone->IsOldObject()) { |
// No need to remember an object in new space. |
@@ -14038,7 +14035,6 @@ RawCode* Code::FinalizeCode(const char* name, |
MemoryRegion region(reinterpret_cast<void*>(instrs.EntryPoint()), |
instrs.size()); |
assembler->FinalizeInstructions(region); |
- VerifiedMemory::Accept(region.start(), region.size()); |
CPU::FlushICache(instrs.EntryPoint(), instrs.size()); |
code.set_compile_timestamp(OS::GetCurrentMonotonicMicros()); |
@@ -21341,8 +21337,6 @@ RawArray* Array::New(intptr_t class_id, intptr_t len, Heap::Space space) { |
space)); |
NoSafepointScope no_safepoint; |
raw->StoreSmi(&(raw->ptr()->length_), Smi::New(len)); |
- VerifiedMemory::Accept(reinterpret_cast<uword>(raw->ptr()), |
- Array::InstanceSize(len)); |
return raw; |
} |
} |