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 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2410 } | 2410 } |
2411 set_prototype_accessors(Foreign::cast(obj)); | 2411 set_prototype_accessors(Foreign::cast(obj)); |
2412 | 2412 |
2413 // Allocate the code_stubs dictionary. The initial size is set to avoid | 2413 // Allocate the code_stubs dictionary. The initial size is set to avoid |
2414 // expanding the dictionary during bootstrapping. | 2414 // expanding the dictionary during bootstrapping. |
2415 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); | 2415 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); |
2416 if (!maybe_obj->ToObject(&obj)) return false; | 2416 if (!maybe_obj->ToObject(&obj)) return false; |
2417 } | 2417 } |
2418 set_code_stubs(NumberDictionary::cast(obj)); | 2418 set_code_stubs(NumberDictionary::cast(obj)); |
2419 | 2419 |
2420 | |
2421 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size | 2420 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size |
2422 // is set to avoid expanding the dictionary during bootstrapping. | 2421 // is set to avoid expanding the dictionary during bootstrapping. |
2423 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); | 2422 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); |
2424 if (!maybe_obj->ToObject(&obj)) return false; | 2423 if (!maybe_obj->ToObject(&obj)) return false; |
2425 } | 2424 } |
2426 set_non_monomorphic_cache(NumberDictionary::cast(obj)); | 2425 set_non_monomorphic_cache(NumberDictionary::cast(obj)); |
2427 | 2426 |
2428 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); | 2427 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); |
2429 if (!maybe_obj->ToObject(&obj)) return false; | 2428 if (!maybe_obj->ToObject(&obj)) return false; |
2430 } | 2429 } |
(...skipping 4160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6591 isolate_->heap()->store_buffer()->Compact(); | 6590 isolate_->heap()->store_buffer()->Compact(); |
6592 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6591 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6593 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6592 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6594 next = chunk->next_chunk(); | 6593 next = chunk->next_chunk(); |
6595 isolate_->memory_allocator()->Free(chunk); | 6594 isolate_->memory_allocator()->Free(chunk); |
6596 } | 6595 } |
6597 chunks_queued_for_free_ = NULL; | 6596 chunks_queued_for_free_ = NULL; |
6598 } | 6597 } |
6599 | 6598 |
6600 } } // namespace v8::internal | 6599 } } // namespace v8::internal |
OLD | NEW |