| Index: runtime/vm/assembler.cc
|
| diff --git a/runtime/vm/assembler.cc b/runtime/vm/assembler.cc
|
| index f2064f824bf02d5b5304c3142ba05b45975da747..3f3e61a12d2b70e046b5d734e739b2f74d96ac10 100644
|
| --- a/runtime/vm/assembler.cc
|
| +++ b/runtime/vm/assembler.cc
|
| @@ -254,8 +254,6 @@ intptr_t ObjectPoolWrapper::AddImmediate(uword imm) {
|
|
|
| intptr_t ObjectPoolWrapper::AddObject(ObjectPool::Entry entry,
|
| Patchability patchable) {
|
| - // The object pool cannot be used in the vm isolate.
|
| - ASSERT(Isolate::Current() != Dart::vm_isolate());
|
| object_pool_.Add(entry);
|
| if (patchable == kNotPatchable) {
|
| // The object isn't patchable. Record the index for fast lookup.
|
| @@ -268,7 +266,6 @@ intptr_t ObjectPoolWrapper::AddObject(ObjectPool::Entry entry,
|
|
|
| intptr_t ObjectPoolWrapper::AddExternalLabel(const ExternalLabel* label,
|
| Patchability patchable) {
|
| - ASSERT(Isolate::Current() != Dart::vm_isolate());
|
| return AddObject(ObjectPool::Entry(label->address(),
|
| ObjectPool::kImmediate),
|
| patchable);
|
| @@ -277,9 +274,6 @@ intptr_t ObjectPoolWrapper::AddExternalLabel(const ExternalLabel* label,
|
|
|
| intptr_t ObjectPoolWrapper::FindObject(ObjectPool::Entry entry,
|
| Patchability patchable) {
|
| - // The object pool cannot be used in the vm isolate.
|
| - ASSERT(Isolate::Current() != Dart::vm_isolate());
|
| -
|
| // If the object is not patchable, check if we've already got it in the
|
| // object pool.
|
| if (patchable == kNotPatchable) {
|
| @@ -306,8 +300,6 @@ intptr_t ObjectPoolWrapper::FindImmediate(uword imm) {
|
|
|
| intptr_t ObjectPoolWrapper::FindExternalLabel(const ExternalLabel* label,
|
| Patchability patchable) {
|
| - // The object pool cannot be used in the vm isolate.
|
| - ASSERT(Isolate::Current() != Dart::vm_isolate());
|
| return FindObject(ObjectPool::Entry(label->address(),
|
| ObjectPool::kImmediate),
|
| patchable);
|
|
|