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/snapshot/serialize.h" | 5 #include "src/snapshot/serialize.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/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 "StubCache::secondary_->value"); | 292 "StubCache::secondary_->value"); |
293 Add(stub_cache->map_reference(StubCache::kSecondary).address(), | 293 Add(stub_cache->map_reference(StubCache::kSecondary).address(), |
294 "StubCache::secondary_->map"); | 294 "StubCache::secondary_->map"); |
295 | 295 |
296 // Runtime entries | 296 // Runtime entries |
297 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), | 297 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), |
298 "HandleScope::DeleteExtensions"); | 298 "HandleScope::DeleteExtensions"); |
299 Add(ExternalReference::incremental_marking_record_write_function(isolate) | 299 Add(ExternalReference::incremental_marking_record_write_function(isolate) |
300 .address(), | 300 .address(), |
301 "IncrementalMarking::RecordWrite"); | 301 "IncrementalMarking::RecordWrite"); |
| 302 Add(ExternalReference::incremental_marking_record_write_code_entry_function( |
| 303 isolate) |
| 304 .address(), |
| 305 "IncrementalMarking::RecordWriteOfCodeEntryFromCode"); |
302 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), | 306 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), |
303 "StoreBuffer::StoreBufferOverflow"); | 307 "StoreBuffer::StoreBufferOverflow"); |
304 | 308 |
305 // Add a small set of deopt entry addresses to encoder without generating the | 309 // Add a small set of deopt entry addresses to encoder without generating the |
306 // deopt table code, which isn't possible at deserialization time. | 310 // deopt table code, which isn't possible at deserialization time. |
307 HandleScope scope(isolate); | 311 HandleScope scope(isolate); |
308 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 312 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
309 Address address = Deoptimizer::GetDeoptimizationEntry( | 313 Address address = Deoptimizer::GetDeoptimizationEntry( |
310 isolate, | 314 isolate, |
311 entry, | 315 entry, |
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2802 SerializedCodeData* scd = new SerializedCodeData(cached_data); | 2806 SerializedCodeData* scd = new SerializedCodeData(cached_data); |
2803 SanityCheckResult r = scd->SanityCheck(isolate, source); | 2807 SanityCheckResult r = scd->SanityCheck(isolate, source); |
2804 if (r == CHECK_SUCCESS) return scd; | 2808 if (r == CHECK_SUCCESS) return scd; |
2805 cached_data->Reject(); | 2809 cached_data->Reject(); |
2806 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); | 2810 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); |
2807 delete scd; | 2811 delete scd; |
2808 return NULL; | 2812 return NULL; |
2809 } | 2813 } |
2810 } // namespace internal | 2814 } // namespace internal |
2811 } // namespace v8 | 2815 } // namespace v8 |
OLD | NEW |