From 3e4c457d1c8d5c847ade040de7cbaa71309774ae Mon Sep 17 00:00:00 2001 From: "feng@chromium.org" Date: Mon, 13 Jul 2009 21:23:21 +0000 Subject: [PATCH] Add ENABLE_DEBUGGER_SUPPPORT around 4 functions, set complation cache generation to 1 for ARM. Review URL: http://codereview.chromium.org/149290 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2448 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compilation-cache.cc | 7 +++++++ src/objects-debug.cc | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/compilation-cache.cc b/src/compilation-cache.cc index 0951af1390..4066bc7fa1 100644 --- a/src/compilation-cache.cc +++ b/src/compilation-cache.cc @@ -37,10 +37,17 @@ namespace internal { static const int kSubCacheCount = 4; // The number of generations for each sub cache. +#if V8_TARGET_ARCH_ARM +static const int kScriptGenerations = 1; +static const int kEvalGlobalGenerations = 1; +static const int kEvalContextualGenerations = 1; +static const int kRegExpGenerations = 1; +#else static const int kScriptGenerations = 5; static const int kEvalGlobalGenerations = 2; static const int kEvalContextualGenerations = 2; static const int kRegExpGenerations = 2; +#endif // Initial of each compilation cache table allocated. static const int kInitialCacheSize = 64; diff --git a/src/objects-debug.cc b/src/objects-debug.cc index d54f74183b..8c57afdbfd 100644 --- a/src/objects-debug.cc +++ b/src/objects-debug.cc @@ -958,6 +958,7 @@ void Script::ScriptPrint() { } +#ifdef ENABLE_DEBUGGER_SUPPORT void DebugInfo::DebugInfoVerify() { CHECK(IsDebugInfo()); VerifyPointer(shared()); @@ -997,6 +998,7 @@ void BreakPointInfo::BreakPointInfoPrint() { PrintF("\n - break_point_objects: "); break_point_objects()->ShortPrint(); } +#endif void JSObject::IncrementSpillStatistics(SpillInformation* info) {