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 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2434 | 2434 |
2435 // Allocate the foreign for __proto__. | 2435 // Allocate the foreign for __proto__. |
2436 { MaybeObject* maybe_obj = | 2436 { MaybeObject* maybe_obj = |
2437 AllocateForeign((Address) &Accessors::ObjectPrototype); | 2437 AllocateForeign((Address) &Accessors::ObjectPrototype); |
2438 if (!maybe_obj->ToObject(&obj)) return false; | 2438 if (!maybe_obj->ToObject(&obj)) return false; |
2439 } | 2439 } |
2440 set_prototype_accessors(Foreign::cast(obj)); | 2440 set_prototype_accessors(Foreign::cast(obj)); |
2441 | 2441 |
2442 // Allocate the code_stubs dictionary. The initial size is set to avoid | 2442 // Allocate the code_stubs dictionary. The initial size is set to avoid |
2443 // expanding the dictionary during bootstrapping. | 2443 // expanding the dictionary during bootstrapping. |
2444 { MaybeObject* maybe_obj = NumberDictionary::Allocate(128); | 2444 { MaybeObject* maybe_obj = NotSeededNumberDictionary::Allocate(128); |
2445 if (!maybe_obj->ToObject(&obj)) return false; | 2445 if (!maybe_obj->ToObject(&obj)) return false; |
2446 } | 2446 } |
2447 set_code_stubs(NumberDictionary::cast(obj)); | 2447 set_code_stubs(NotSeededNumberDictionary::cast(obj)); |
2448 | 2448 |
2449 | 2449 |
2450 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size | 2450 // Allocate the non_monomorphic_cache used in stub-cache.cc. The initial size |
2451 // is set to avoid expanding the dictionary during bootstrapping. | 2451 // is set to avoid expanding the dictionary during bootstrapping. |
2452 { MaybeObject* maybe_obj = NumberDictionary::Allocate(64); | 2452 { MaybeObject* maybe_obj = NotSeededNumberDictionary::Allocate(64); |
2453 if (!maybe_obj->ToObject(&obj)) return false; | 2453 if (!maybe_obj->ToObject(&obj)) return false; |
2454 } | 2454 } |
2455 set_non_monomorphic_cache(NumberDictionary::cast(obj)); | 2455 set_non_monomorphic_cache(NotSeededNumberDictionary::cast(obj)); |
2456 | 2456 |
2457 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); | 2457 { MaybeObject* maybe_obj = AllocatePolymorphicCodeCache(); |
2458 if (!maybe_obj->ToObject(&obj)) return false; | 2458 if (!maybe_obj->ToObject(&obj)) return false; |
2459 } | 2459 } |
2460 set_polymorphic_code_cache(PolymorphicCodeCache::cast(obj)); | 2460 set_polymorphic_code_cache(PolymorphicCodeCache::cast(obj)); |
2461 | 2461 |
2462 set_instanceof_cache_function(Smi::FromInt(0)); | 2462 set_instanceof_cache_function(Smi::FromInt(0)); |
2463 set_instanceof_cache_map(Smi::FromInt(0)); | 2463 set_instanceof_cache_map(Smi::FromInt(0)); |
2464 set_instanceof_cache_answer(Smi::FromInt(0)); | 2464 set_instanceof_cache_answer(Smi::FromInt(0)); |
2465 | 2465 |
(...skipping 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6632 isolate_->heap()->store_buffer()->Compact(); | 6632 isolate_->heap()->store_buffer()->Compact(); |
6633 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6633 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6634 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6634 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6635 next = chunk->next_chunk(); | 6635 next = chunk->next_chunk(); |
6636 isolate_->memory_allocator()->Free(chunk); | 6636 isolate_->memory_allocator()->Free(chunk); |
6637 } | 6637 } |
6638 chunks_queued_for_free_ = NULL; | 6638 chunks_queued_for_free_ = NULL; |
6639 } | 6639 } |
6640 | 6640 |
6641 } } // namespace v8::internal | 6641 } } // namespace v8::internal |
OLD | NEW |