Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: src/runtime.cc

Issue 3382007: [Isolates] ScavengeVisitor gets member Heap*. (Closed)
Patch Set: fixed per review comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parser.cc ('k') | src/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/parser.cc ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698