OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #endif | 59 #endif |
60 | 60 |
61 namespace v8 { | 61 namespace v8 { |
62 namespace internal { | 62 namespace internal { |
63 | 63 |
64 | 64 |
65 Heap::Heap() | 65 Heap::Heap() |
66 : isolate_(NULL), | 66 : isolate_(NULL), |
67 // semispace_size_ should be a power of 2 and old_generation_size_ should be | 67 // semispace_size_ should be a power of 2 and old_generation_size_ should be |
68 // a multiple of Page::kPageSize. | 68 // a multiple of Page::kPageSize. |
69 #if defined(V8_TARGET_ARCH_X64) | 69 #if V8_TARGET_ARCH_X64 |
70 #define LUMP_OF_MEMORY (2 * MB) | 70 #define LUMP_OF_MEMORY (2 * MB) |
71 code_range_size_(512*MB), | 71 code_range_size_(512*MB), |
72 #else | 72 #else |
73 #define LUMP_OF_MEMORY MB | 73 #define LUMP_OF_MEMORY MB |
74 code_range_size_(0), | 74 code_range_size_(0), |
75 #endif | 75 #endif |
76 #if defined(ANDROID) | 76 #if defined(ANDROID) |
77 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), | 77 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), |
78 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), | 78 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), |
79 initial_semispace_size_(Page::kPageSize), | 79 initial_semispace_size_(Page::kPageSize), |
(...skipping 8035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8115 if (FLAG_parallel_recompilation) { | 8115 if (FLAG_parallel_recompilation) { |
8116 heap_->relocation_mutex_->Lock(); | 8116 heap_->relocation_mutex_->Lock(); |
8117 #ifdef DEBUG | 8117 #ifdef DEBUG |
8118 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8118 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
8119 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8119 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
8120 #endif // DEBUG | 8120 #endif // DEBUG |
8121 } | 8121 } |
8122 } | 8122 } |
8123 | 8123 |
8124 } } // namespace v8::internal | 8124 } } // namespace v8::internal |
OLD | NEW |