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 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 { MaybeObject* maybe_obj = | 2214 { MaybeObject* maybe_obj = |
2215 AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); | 2215 AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); |
2216 if (!maybe_obj->ToObject(&obj)) return false; | 2216 if (!maybe_obj->ToObject(&obj)) return false; |
2217 } | 2217 } |
2218 set_block_context_map(Map::cast(obj)); | 2218 set_block_context_map(Map::cast(obj)); |
2219 | 2219 |
2220 { MaybeObject* maybe_obj = | 2220 { MaybeObject* maybe_obj = |
2221 AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); | 2221 AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); |
2222 if (!maybe_obj->ToObject(&obj)) return false; | 2222 if (!maybe_obj->ToObject(&obj)) return false; |
2223 } | 2223 } |
| 2224 set_module_context_map(Map::cast(obj)); |
| 2225 |
| 2226 { MaybeObject* maybe_obj = |
| 2227 AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); |
| 2228 if (!maybe_obj->ToObject(&obj)) return false; |
| 2229 } |
2224 Map* global_context_map = Map::cast(obj); | 2230 Map* global_context_map = Map::cast(obj); |
2225 global_context_map->set_visitor_id(StaticVisitorBase::kVisitGlobalContext); | 2231 global_context_map->set_visitor_id(StaticVisitorBase::kVisitGlobalContext); |
2226 set_global_context_map(global_context_map); | 2232 set_global_context_map(global_context_map); |
2227 | 2233 |
2228 { MaybeObject* maybe_obj = AllocateMap(SHARED_FUNCTION_INFO_TYPE, | 2234 { MaybeObject* maybe_obj = AllocateMap(SHARED_FUNCTION_INFO_TYPE, |
2229 SharedFunctionInfo::kAlignedSize); | 2235 SharedFunctionInfo::kAlignedSize); |
2230 if (!maybe_obj->ToObject(&obj)) return false; | 2236 if (!maybe_obj->ToObject(&obj)) return false; |
2231 } | 2237 } |
2232 set_shared_function_info_map(Map::cast(obj)); | 2238 set_shared_function_info_map(Map::cast(obj)); |
2233 | 2239 |
(...skipping 4647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6881 isolate_->heap()->store_buffer()->Compact(); | 6887 isolate_->heap()->store_buffer()->Compact(); |
6882 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6888 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6883 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6889 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6884 next = chunk->next_chunk(); | 6890 next = chunk->next_chunk(); |
6885 isolate_->memory_allocator()->Free(chunk); | 6891 isolate_->memory_allocator()->Free(chunk); |
6886 } | 6892 } |
6887 chunks_queued_for_free_ = NULL; | 6893 chunks_queued_for_free_ = NULL; |
6888 } | 6894 } |
6889 | 6895 |
6890 } } // namespace v8::internal | 6896 } } // namespace v8::internal |
OLD | NEW |