OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/full-codegen.h" | 9 #include "src/full-codegen.h" |
10 #include "src/heap/mark-compact.h" | 10 #include "src/heap/mark-compact.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 } else { | 107 } else { |
108 return true; | 108 return true; |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 if (requested <= kMinimumCodeRangeSize) { | 112 if (requested <= kMinimumCodeRangeSize) { |
113 requested = kMinimumCodeRangeSize; | 113 requested = kMinimumCodeRangeSize; |
114 } | 114 } |
115 | 115 |
116 DCHECK(!kRequiresCodeRange || requested <= kMaximalCodeRangeSize); | 116 DCHECK(!kRequiresCodeRange || requested <= kMaximalCodeRangeSize); |
117 #ifdef V8_TARGET_ARCH_MIPS64 | |
jochen (gone - plz use gerrit)
2015/05/26 15:44:35
same here?
dusmil.imgtec
2015/05/26 16:16:34
Done.
| |
118 code_range_ = new base::VirtualMemory(requested, kMaximalCodeRangeSize); | |
119 #else | |
117 code_range_ = new base::VirtualMemory(requested); | 120 code_range_ = new base::VirtualMemory(requested); |
121 #endif | |
118 CHECK(code_range_ != NULL); | 122 CHECK(code_range_ != NULL); |
119 if (!code_range_->IsReserved()) { | 123 if (!code_range_->IsReserved()) { |
120 delete code_range_; | 124 delete code_range_; |
121 code_range_ = NULL; | 125 code_range_ = NULL; |
122 return false; | 126 return false; |
123 } | 127 } |
124 | 128 |
125 // We are sure that we have mapped a block of requested addresses. | 129 // We are sure that we have mapped a block of requested addresses. |
126 DCHECK(code_range_->size() == requested); | 130 DCHECK(code_range_->size() == requested); |
127 Address base = reinterpret_cast<Address>(code_range_->address()); | 131 Address base = reinterpret_cast<Address>(code_range_->address()); |
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3133 object->ShortPrint(); | 3137 object->ShortPrint(); |
3134 PrintF("\n"); | 3138 PrintF("\n"); |
3135 } | 3139 } |
3136 printf(" --------------------------------------\n"); | 3140 printf(" --------------------------------------\n"); |
3137 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3141 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3138 } | 3142 } |
3139 | 3143 |
3140 #endif // DEBUG | 3144 #endif // DEBUG |
3141 } | 3145 } |
3142 } // namespace v8::internal | 3146 } // namespace v8::internal |
OLD | NEW |