| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/base/platform/platform.h" |
| 9 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| 10 #include "src/deoptimizer.h" | 11 #include "src/deoptimizer.h" |
| 11 #include "src/execution.h" | 12 #include "src/execution.h" |
| 12 #include "src/global-handles.h" | 13 #include "src/global-handles.h" |
| 13 #include "src/ic-inl.h" | 14 #include "src/ic-inl.h" |
| 14 #include "src/natives.h" | 15 #include "src/natives.h" |
| 15 #include "src/platform.h" | |
| 16 #include "src/runtime.h" | 16 #include "src/runtime.h" |
| 17 #include "src/serialize.h" | 17 #include "src/serialize.h" |
| 18 #include "src/snapshot.h" | 18 #include "src/snapshot.h" |
| 19 #include "src/snapshot-source-sink.h" | 19 #include "src/snapshot-source-sink.h" |
| 20 #include "src/stub-cache.h" | 20 #include "src/stub-cache.h" |
| 21 #include "src/v8threads.h" | 21 #include "src/v8threads.h" |
| 22 | 22 |
| 23 namespace v8 { | 23 namespace v8 { |
| 24 namespace internal { | 24 namespace internal { |
| 25 | 25 |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 for (int i = 0; i < LAST_SPACE + 1; i++) { | 722 for (int i = 0; i < LAST_SPACE + 1; i++) { |
| 723 reservations_[i] = kUninitializedReservation; | 723 reservations_[i] = kUninitializedReservation; |
| 724 } | 724 } |
| 725 } | 725 } |
| 726 | 726 |
| 727 | 727 |
| 728 void Deserializer::FlushICacheForNewCodeObjects() { | 728 void Deserializer::FlushICacheForNewCodeObjects() { |
| 729 PageIterator it(isolate_->heap()->code_space()); | 729 PageIterator it(isolate_->heap()->code_space()); |
| 730 while (it.has_next()) { | 730 while (it.has_next()) { |
| 731 Page* p = it.next(); | 731 Page* p = it.next(); |
| 732 CPU::FlushICache(p->area_start(), p->area_end() - p->area_start()); | 732 CpuFeatures::FlushICache(p->area_start(), p->area_end() - p->area_start()); |
| 733 } | 733 } |
| 734 } | 734 } |
| 735 | 735 |
| 736 | 736 |
| 737 void Deserializer::Deserialize(Isolate* isolate) { | 737 void Deserializer::Deserialize(Isolate* isolate) { |
| 738 isolate_ = isolate; | 738 isolate_ = isolate; |
| 739 ASSERT(isolate_ != NULL); | 739 ASSERT(isolate_ != NULL); |
| 740 isolate_->heap()->ReserveSpace(reservations_, &high_water_[0]); | 740 isolate_->heap()->ReserveSpace(reservations_, &high_water_[0]); |
| 741 // No active threads. | 741 // No active threads. |
| 742 ASSERT_EQ(NULL, isolate_->thread_manager()->FirstThreadStateInUse()); | 742 ASSERT_EQ(NULL, isolate_->thread_manager()->FirstThreadStateInUse()); |
| (...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 | 1807 |
| 1808 void Serializer::InitializeCodeAddressMap() { | 1808 void Serializer::InitializeCodeAddressMap() { |
| 1809 isolate_->InitializeLoggingAndCounters(); | 1809 isolate_->InitializeLoggingAndCounters(); |
| 1810 code_address_map_ = new CodeAddressMap(isolate_); | 1810 code_address_map_ = new CodeAddressMap(isolate_); |
| 1811 } | 1811 } |
| 1812 | 1812 |
| 1813 | 1813 |
| 1814 } } // namespace v8::internal | 1814 } } // namespace v8::internal |
| OLD | NEW |