Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: src/snapshot/serialize.cc

Issue 1647123002: Write barrier for storing a code entry, and usage in CompileLazy builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and comment response. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 "StubCache::secondary_->value"); 313 "StubCache::secondary_->value");
314 Add(stub_cache->map_reference(StubCache::kSecondary).address(), 314 Add(stub_cache->map_reference(StubCache::kSecondary).address(),
315 "StubCache::secondary_->map"); 315 "StubCache::secondary_->map");
316 316
317 // Runtime entries 317 // Runtime entries
318 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), 318 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(),
319 "HandleScope::DeleteExtensions"); 319 "HandleScope::DeleteExtensions");
320 Add(ExternalReference::incremental_marking_record_write_function(isolate) 320 Add(ExternalReference::incremental_marking_record_write_function(isolate)
321 .address(), 321 .address(),
322 "IncrementalMarking::RecordWrite"); 322 "IncrementalMarking::RecordWrite");
323 Add(ExternalReference::incremental_marking_record_write_code_entry_function(
324 isolate)
325 .address(),
326 "IncrementalMarking::RecordWriteOfCodeEntryFromCode");
323 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), 327 Add(ExternalReference::store_buffer_overflow_function(isolate).address(),
324 "StoreBuffer::StoreBufferOverflow"); 328 "StoreBuffer::StoreBufferOverflow");
325 329
326 // Add a small set of deopt entry addresses to encoder without generating the 330 // Add a small set of deopt entry addresses to encoder without generating the
327 // deopt table code, which isn't possible at deserialization time. 331 // deopt table code, which isn't possible at deserialization time.
328 HandleScope scope(isolate); 332 HandleScope scope(isolate);
329 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 333 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
330 Address address = Deoptimizer::GetDeoptimizationEntry( 334 Address address = Deoptimizer::GetDeoptimizationEntry(
331 isolate, 335 isolate,
332 entry, 336 entry,
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 SerializedCodeData* scd = new SerializedCodeData(cached_data); 2820 SerializedCodeData* scd = new SerializedCodeData(cached_data);
2817 SanityCheckResult r = scd->SanityCheck(isolate, source); 2821 SanityCheckResult r = scd->SanityCheck(isolate, source);
2818 if (r == CHECK_SUCCESS) return scd; 2822 if (r == CHECK_SUCCESS) return scd;
2819 cached_data->Reject(); 2823 cached_data->Reject();
2820 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r); 2824 source->GetIsolate()->counters()->code_cache_reject_reason()->AddSample(r);
2821 delete scd; 2825 delete scd;
2822 return NULL; 2826 return NULL;
2823 } 2827 }
2824 } // namespace internal 2828 } // namespace internal
2825 } // namespace v8 2829 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698