| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 namespace internal { | 63 namespace internal { |
| 64 | 64 |
| 65 | 65 |
| 66 Heap::Heap() | 66 Heap::Heap() |
| 67 : isolate_(NULL), | 67 : isolate_(NULL), |
| 68 // semispace_size_ should be a power of 2 and old_generation_size_ should be | 68 // semispace_size_ should be a power of 2 and old_generation_size_ should be |
| 69 // a multiple of Page::kPageSize. | 69 // a multiple of Page::kPageSize. |
| 70 #if V8_TARGET_ARCH_X64 | 70 #if V8_TARGET_ARCH_X64 |
| 71 #define LUMP_OF_MEMORY (2 * MB) | 71 #define LUMP_OF_MEMORY (2 * MB) |
| 72 code_range_size_(512*MB), | 72 code_range_size_(512*MB), |
| 73 #elif V8_TARGET_ARCH_X32 |
| 74 #define LUMP_OF_MEMORY MB |
| 75 code_range_size_(256*MB), |
| 73 #else | 76 #else |
| 74 #define LUMP_OF_MEMORY MB | 77 #define LUMP_OF_MEMORY MB |
| 75 code_range_size_(0), | 78 code_range_size_(0), |
| 76 #endif | 79 #endif |
| 77 #if defined(ANDROID) | 80 #if defined(ANDROID) |
| 78 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), | 81 reserved_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), |
| 79 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), | 82 max_semispace_size_(4 * Max(LUMP_OF_MEMORY, Page::kPageSize)), |
| 80 initial_semispace_size_(Page::kPageSize), | 83 initial_semispace_size_(Page::kPageSize), |
| 81 max_old_generation_size_(192*MB), | 84 max_old_generation_size_(192*MB), |
| 82 max_executable_size_(max_old_generation_size_), | 85 max_executable_size_(max_old_generation_size_), |
| (...skipping 8033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8116 if (FLAG_parallel_recompilation) { | 8119 if (FLAG_parallel_recompilation) { |
| 8117 heap_->relocation_mutex_->Lock(); | 8120 heap_->relocation_mutex_->Lock(); |
| 8118 #ifdef DEBUG | 8121 #ifdef DEBUG |
| 8119 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8122 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
| 8120 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8123 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
| 8121 #endif // DEBUG | 8124 #endif // DEBUG |
| 8122 } | 8125 } |
| 8123 } | 8126 } |
| 8124 | 8127 |
| 8125 } } // namespace v8::internal | 8128 } } // namespace v8::internal |
| OLD | NEW |