| Index: runtime/vm/stub_code_x64.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_x64.cc (revision 22017)
|
| +++ runtime/vm/stub_code_x64.cc (working copy)
|
| @@ -9,9 +9,9 @@
|
| #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/pages.h"
|
| #include "vm/resolver.h"
|
| #include "vm/scavenger.h"
|
| #include "vm/stub_code.h"
|
| @@ -1010,7 +1010,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();
|
| __ movq(RAX, Immediate(heap->TopAddress()));
|
| @@ -1184,7 +1184,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();
|
| __ movq(RAX, Immediate(heap->TopAddress()));
|
|
|