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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 LinearAllocationScope allocate_linearly; | 685 LinearAllocationScope allocate_linearly; |
686 // No active threads. | 686 // No active threads. |
687 ASSERT_EQ(NULL, isolate_->thread_manager()->FirstThreadStateInUse()); | 687 ASSERT_EQ(NULL, isolate_->thread_manager()->FirstThreadStateInUse()); |
688 // No active handles. | 688 // No active handles. |
689 ASSERT(isolate_->handle_scope_implementer()->blocks()->is_empty()); | 689 ASSERT(isolate_->handle_scope_implementer()->blocks()->is_empty()); |
690 ASSERT_EQ(NULL, external_reference_decoder_); | 690 ASSERT_EQ(NULL, external_reference_decoder_); |
691 external_reference_decoder_ = new ExternalReferenceDecoder(); | 691 external_reference_decoder_ = new ExternalReferenceDecoder(); |
692 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG); | 692 isolate_->heap()->IterateStrongRoots(this, VISIT_ONLY_STRONG); |
693 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL); | 693 isolate_->heap()->IterateWeakRoots(this, VISIT_ALL); |
694 | 694 |
695 isolate_->heap()->set_global_contexts_list( | 695 isolate_->heap()->set_native_contexts_list( |
696 isolate_->heap()->undefined_value()); | 696 isolate_->heap()->undefined_value()); |
697 | 697 |
698 // Update data pointers to the external strings containing natives sources. | 698 // Update data pointers to the external strings containing natives sources. |
699 for (int i = 0; i < Natives::GetBuiltinsCount(); i++) { | 699 for (int i = 0; i < Natives::GetBuiltinsCount(); i++) { |
700 Object* source = isolate_->heap()->natives_source_cache()->get(i); | 700 Object* source = isolate_->heap()->natives_source_cache()->get(i); |
701 if (!source->IsUndefined()) { | 701 if (!source->IsUndefined()) { |
702 ExternalAsciiString::cast(source)->update_data_cache(); | 702 ExternalAsciiString::cast(source)->update_data_cache(); |
703 } | 703 } |
704 } | 704 } |
705 } | 705 } |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 int Serializer::SpaceAreaSize(int space) { | 1706 int Serializer::SpaceAreaSize(int space) { |
1707 if (space == CODE_SPACE) { | 1707 if (space == CODE_SPACE) { |
1708 return isolate_->memory_allocator()->CodePageAreaSize(); | 1708 return isolate_->memory_allocator()->CodePageAreaSize(); |
1709 } else { | 1709 } else { |
1710 return Page::kPageSize - Page::kObjectStartOffset; | 1710 return Page::kPageSize - Page::kObjectStartOffset; |
1711 } | 1711 } |
1712 } | 1712 } |
1713 | 1713 |
1714 | 1714 |
1715 } } // namespace v8::internal | 1715 } } // namespace v8::internal |
OLD | NEW |