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

Unified Diff: src/ia32/code-stubs-ia32.cc

Issue 7058009: Make InToSpace/InFromSpace use the page header. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Used Clear/Set macros more in SemiSpace::Flip Created 9 years, 7 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
« no previous file with comments | « src/heap-inl.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/code-stubs-ia32.cc
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
index eaa7729fa3f83d0b9ce70010f17186b2dede7e23..394a637ee95c0ba1d30e282429f937aec1826669 100644
--- a/src/ia32/code-stubs-ia32.cc
+++ b/src/ia32/code-stubs-ia32.cc
@@ -6259,9 +6259,7 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm) {
Label value_in_old_space;
- __ CheckPageFlag(value_, regs_.scratch0(),
- MemoryChunk::IN_NEW_SPACE, zero,
- &value_in_old_space);
+ __ InNewSpace(value_, regs_.scratch0(), not_equal, &value_in_old_space);
// After this point the value_ register may have been overwritten since it is
// also one of the scratch registers.
@@ -6300,9 +6298,7 @@ void RecordWriteStub::GenerateIncrementalValueIsInNewSpace(
Label value_in_new_space_object_is_black_no_remembered_set;
// The value is in new space. Check the object.
- __ CheckPageFlag(regs_.object(), regs_.scratch0(),
- MemoryChunk::IN_NEW_SPACE, not_zero,
- &both_in_new_space);
+ __ InNewSpace(regs_.object(), regs_.scratch0(), equal, &both_in_new_space);
// Value is in new space, object is in old space. Could we be lucky and find
// the scan_on_scavenge flag on the object's page?
@@ -6450,9 +6446,8 @@ void RecordWriteStub::GenerateIncrementalValueIsInOldSpace(
// object is in in order to find its colour.
__ bind(&value_is_white);
__ pop(regs_.object());
- __ CheckPageFlag(regs_.object(), regs_.scratch0(),
- MemoryChunk::IN_NEW_SPACE, not_zero,
- &value_in_old_space_and_white_object_in_new_space);
+ __ InNewSpace(regs_.object(), regs_.scratch0(), equal,
+ &value_in_old_space_and_white_object_in_new_space);
// Both in old space, value is white and can't be marked.
__ InOldSpaceIsBlack(regs_.object(),
« no previous file with comments | « src/heap-inl.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698