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

Unified Diff: src/heap/heap.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 4 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
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 5d3bde4592c991844f1f024c7ab7cb391702d2e7..18e4d941de16984ee75c80386fb61a4f86bc7c79 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -31,6 +31,10 @@
#include "src/v8threads.h"
#include "src/vm-state-inl.h"
+#if V8_TARGET_ARCH_PPC && !V8_INTERPRETED_REGEXP
+#include "src/regexp-macro-assembler.h" // NOLINT
+#include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT
+#endif
#if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
#include "src/regexp-macro-assembler.h" // NOLINT
#include "src/arm/regexp-macro-assembler-arm.h" // NOLINT
@@ -43,6 +47,7 @@
#include "src/regexp-macro-assembler.h"
#include "src/mips64/regexp-macro-assembler-mips64.h"
#endif
+#include "src/full-codegen.h"
namespace v8 {
namespace internal {
@@ -814,7 +819,8 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason,
!incremental_marking()->should_hurry() &&
FLAG_incremental_marking_steps) {
// Make progress in incremental marking.
- const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB;
+ const intptr_t kStepSizeWhenDelayedByScavenge =
+ 1 * MB * FullCodeGenerator::kCodeSizeMultiplier / 100;
incremental_marking()->Step(kStepSizeWhenDelayedByScavenge,
IncrementalMarking::NO_GC_VIA_STACK_GUARD);
if (!incremental_marking()->IsComplete() && !FLAG_gc_global) {

Powered by Google App Engine
This is Rietveld 408576698