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
This commit is contained in:
feng@chromium.org 2009-07-13 21:23:21 +00:00
parent 0b70c7e16e
commit 3e4c457d1c
2 changed files with 9 additions and 0 deletions

View File

@ -37,10 +37,17 @@ namespace internal {
static const int kSubCacheCount = 4; static const int kSubCacheCount = 4;
// The number of generations for each sub cache. // 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 kScriptGenerations = 5;
static const int kEvalGlobalGenerations = 2; static const int kEvalGlobalGenerations = 2;
static const int kEvalContextualGenerations = 2; static const int kEvalContextualGenerations = 2;
static const int kRegExpGenerations = 2; static const int kRegExpGenerations = 2;
#endif
// Initial of each compilation cache table allocated. // Initial of each compilation cache table allocated.
static const int kInitialCacheSize = 64; static const int kInitialCacheSize = 64;

View File

@ -958,6 +958,7 @@ void Script::ScriptPrint() {
} }
#ifdef ENABLE_DEBUGGER_SUPPORT
void DebugInfo::DebugInfoVerify() { void DebugInfo::DebugInfoVerify() {
CHECK(IsDebugInfo()); CHECK(IsDebugInfo());
VerifyPointer(shared()); VerifyPointer(shared());
@ -997,6 +998,7 @@ void BreakPointInfo::BreakPointInfoPrint() {
PrintF("\n - break_point_objects: "); PrintF("\n - break_point_objects: ");
break_point_objects()->ShortPrint(); break_point_objects()->ShortPrint();
} }
#endif
void JSObject::IncrementSpillStatistics(SpillInformation* info) { void JSObject::IncrementSpillStatistics(SpillInformation* info) {