OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2361 } | 2361 } |
2362 set_prototype_accessors(Foreign::cast(obj)); | 2362 set_prototype_accessors(Foreign::cast(obj)); |
2363 | 2363 |
2364 // Allocate the code_stubs dictionary. The initial size is set to avoid | 2364 // Allocate the code_stubs dictionary. The initial size is set to avoid |
2365 // expanding the dictionary during bootstrapping. | 2365 // expanding the dictionary during bootstrapping. |
2366 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); | 2366 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); |
2367 if (!maybe_obj->ToObject(&obj)) return false; | 2367 if (!maybe_obj->ToObject(&obj)) return false; |
2368 } | 2368 } |
2369 set_code_stubs(NumberDictionary::cast(obj)); | 2369 set_code_stubs(NumberDictionary::cast(obj)); |
2370 | 2370 |
| 2371 |
2371 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size | 2372 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size |
2372 // is set to avoid expanding the dictionary during bootstrapping. | 2373 // is set to avoid expanding the dictionary during bootstrapping. |
2373 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); | 2374 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); |
2374 if (!maybe_obj->ToObject(&obj)) return false; | 2375 if (!maybe_obj->ToObject(&obj)) return false; |
2375 } | 2376 } |
2376 set_non_monomorphic_cache(NumberDictionary::cast(obj)); | 2377 set_non_monomorphic_cache(NumberDictionary::cast(obj)); |
2377 | 2378 |
2378 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); | 2379 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); |
2379 if (!maybe_obj->ToObject(&obj)) return false; | 2380 if (!maybe_obj->ToObject(&obj)) return false; |
2380 } | 2381 } |
(...skipping 4074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6455 isolate_->heap()->store_buffer()->Compact(); | 6456 isolate_->heap()->store_buffer()->Compact(); |
6456 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6457 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6457 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6458 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6458 next = chunk->next_chunk(); | 6459 next = chunk->next_chunk(); |
6459 isolate_->memory_allocator()->Free(chunk); | 6460 isolate_->memory_allocator()->Free(chunk); |
6460 } | 6461 } |
6461 chunks_queued_for_free_ = NULL; | 6462 chunks_queued_for_free_ = NULL; |
6462 } | 6463 } |
6463 | 6464 |
6464 } } // namespace v8::internal | 6465 } } // namespace v8::internal |
OLD | NEW |