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

Side by Side Diff: src/compilation-cache.cc

Issue 155538: Adjust kPagesPerChunk to 16 instead of 64 on Android.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 #include "compilation-cache.h" 30 #include "compilation-cache.h"
31 31
32 namespace v8 { 32 namespace v8 {
33 namespace internal { 33 namespace internal {
34 34
35 35
36 // The number of sub caches covering the different types to cache. 36 // The number of sub caches covering the different types to cache.
37 static const int kSubCacheCount = 4; 37 static const int kSubCacheCount = 4;
38 38
39 // The number of generations for each sub cache. 39 // The number of generations for each sub cache.
40 #if V8_TARGET_ARCH_ARM 40 #if defined(ANDROID)
41 static const int kScriptGenerations = 1; 41 static const int kScriptGenerations = 1;
42 static const int kEvalGlobalGenerations = 1; 42 static const int kEvalGlobalGenerations = 1;
43 static const int kEvalContextualGenerations = 1; 43 static const int kEvalContextualGenerations = 1;
44 static const int kRegExpGenerations = 1; 44 static const int kRegExpGenerations = 1;
45 #else 45 #else
46 static const int kScriptGenerations = 5; 46 static const int kScriptGenerations = 5;
47 static const int kEvalGlobalGenerations = 2; 47 static const int kEvalGlobalGenerations = 2;
48 static const int kEvalContextualGenerations = 2; 48 static const int kEvalContextualGenerations = 2;
49 static const int kRegExpGenerations = 2; 49 static const int kRegExpGenerations = 2;
50 #endif 50 #endif
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 478 }
479 479
480 480
481 void CompilationCache::Disable() { 481 void CompilationCache::Disable() {
482 enabled = false; 482 enabled = false;
483 Clear(); 483 Clear();
484 } 484 }
485 485
486 486
487 } } // namespace v8::internal 487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698