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

Unified Diff: src/snapshot/serialize.cc

Issue 1632913003: [heap] Move to page lookups for SemiSpace, NewSpace, and Heap containment methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm 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 side-by-side diff with in-line comments
Download patch
Index: src/snapshot/serialize.cc
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
index 096576f0a0e913b7aff318a6bb576bf6e7397779..21981b31f08d4451d76ffa724649048ff21fa7f7 100644
--- a/src/snapshot/serialize.cc
+++ b/src/snapshot/serialize.cc
@@ -54,8 +54,6 @@ ExternalReferenceTable::ExternalReferenceTable(Isolate* isolate) {
"StackGuard::address_of_real_jslimit()");
Add(ExternalReference::new_space_start(isolate).address(),
"Heap::NewSpaceStart()");
- Add(ExternalReference::new_space_mask(isolate).address(),
- "Heap::NewSpaceMask()");
Add(ExternalReference::new_space_allocation_limit_address(isolate).address(),
"Heap::NewSpaceAllocationLimitAddress()");
Add(ExternalReference::new_space_allocation_top_address(isolate).address(),
@@ -1014,7 +1012,7 @@ bool Deserializer::ReadData(Object** current, Object** limit, int source_space,
} \
if (emit_write_barrier && write_barrier_needed) { \
Address current_address = reinterpret_cast<Address>(current); \
- isolate->heap()->RecordWrite( \
+ isolate->heap()->RecordWriteSlow( \
Michael Lippautz 2016/02/05 12:44:40 I tried switching this to the fast check, which as
Yang 2016/02/05 12:54:05 Yes I think this is the case. The deserializer is
Michael Lippautz 2016/02/08 18:00:38 Actually, we are in a path where we can cast to Ob
current_object_address, \
static_cast<int>(current_address - current_object_address)); \
} \
@@ -1250,7 +1248,7 @@ bool Deserializer::ReadData(Object** current, Object** limit, int source_space,
UnalignedCopy(current, &hot_object);
if (write_barrier_needed && isolate->heap()->InNewSpace(hot_object)) {
Address current_address = reinterpret_cast<Address>(current);
- isolate->heap()->RecordWrite(
+ isolate->heap()->RecordWriteSlow(
current_object_address,
static_cast<int>(current_address - current_object_address));
}
« src/heap/spaces-inl.h ('K') | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698