| Index: runtime/vm/stub_code_mips.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_mips.cc (revision 22017)
|
| +++ runtime/vm/stub_code_mips.cc (working copy)
|
| @@ -10,6 +10,7 @@
|
| #include "vm/compiler.h"
|
| #include "vm/dart_entry.h"
|
| #include "vm/flow_graph_compiler.h"
|
| +#include "vm/heap.h"
|
| #include "vm/instructions.h"
|
| #include "vm/object_store.h"
|
| #include "vm/stack_frame.h"
|
| @@ -912,7 +913,7 @@
|
| ASSERT(instance_size > 0);
|
| const intptr_t type_args_size = InstantiatedTypeArguments::InstanceSize();
|
| if (FLAG_inline_alloc &&
|
| - PageSpace::IsPageAllocatableSize(instance_size + type_args_size)) {
|
| + Heap::IsAllocatableInNewSpace(instance_size + type_args_size)) {
|
| Label slow_case;
|
| Heap* heap = Isolate::Current()->heap();
|
| __ LoadImmediate(T5, heap->TopAddress());
|
| @@ -1093,7 +1094,7 @@
|
| const intptr_t closure_size = Closure::InstanceSize();
|
| const intptr_t context_size = Context::InstanceSize(1); // Captured receiver.
|
| if (FLAG_inline_alloc &&
|
| - PageSpace::IsPageAllocatableSize(closure_size + context_size)) {
|
| + Heap::IsAllocatableInNewSpace(closure_size + context_size)) {
|
| Label slow_case;
|
| Heap* heap = Isolate::Current()->heap();
|
| __ LoadImmediate(T5, heap->TopAddress());
|
|
|