| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index b7c29c1995ab1704d9c241d94ffc5e99278df4f4..4aa988bade134beacda8895e058d4d97e6eb7443 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -103,7 +103,7 @@ RuntimeState::RuntimeState()
|
|
|
| MUST_USE_RESULT static Object* DeepCopyBoilerplate(Heap* heap,
|
| JSObject* boilerplate) {
|
| - StackLimitCheck check;
|
| + StackLimitCheck check(heap->isolate());
|
| if (check.HasOverflowed()) return heap->isolate()->StackOverflow();
|
|
|
| Object* result = heap->CopyJSObject(boilerplate);
|
| @@ -164,8 +164,8 @@ MUST_USE_RESULT static Object* DeepCopyBoilerplate(Heap* heap,
|
| switch (copy->GetElementsKind()) {
|
| case JSObject::FAST_ELEMENTS: {
|
| FixedArray* elements = FixedArray::cast(copy->elements());
|
| - if (elements->map() == HEAP->fixed_cow_array_map()) {
|
| - COUNTERS->cow_arrays_created_runtime()->Increment();
|
| + if (elements->map() == heap->fixed_cow_array_map()) {
|
| + heap->isolate()->counters()->cow_arrays_created_runtime()->Increment();
|
| #ifdef DEBUG
|
| for (int i = 0; i < elements->length(); i++) {
|
| ASSERT(!elements->get(i)->IsJSObject());
|
|
|