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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 1517993003: [heap] Black is encoded with 11, grey with 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/ppc/macro-assembler-ppc.cc ('k') | src/x64/macro-assembler-x64.cc » ('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 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Check if object is in new space. Jumps if the object is in new space. 223 // Check if object is in new space. Jumps if the object is in new space.
224 // The register scratch can be object itself, but it will be clobbered. 224 // The register scratch can be object itself, but it will be clobbered.
225 void JumpIfInNewSpace(Register object, 225 void JumpIfInNewSpace(Register object,
226 Register scratch, 226 Register scratch,
227 Label* branch, 227 Label* branch,
228 Label::Distance distance = Label::kFar) { 228 Label::Distance distance = Label::kFar) {
229 InNewSpace(object, scratch, equal, branch, distance); 229 InNewSpace(object, scratch, equal, branch, distance);
230 } 230 }
231 231
232 // Check if an object has the black incremental marking color. Also uses rcx! 232 // Check if an object has the black incremental marking color. Also uses rcx!
233 void JumpIfBlack(Register object, 233 void JumpIfBlack(Register object, Register bitmap_scratch,
234 Register scratch0, 234 Register mask_scratch, Label* on_black,
235 Register scratch1, 235 Label::Distance on_black_distance);
236 Label* on_black,
237 Label::Distance on_black_distance = Label::kFar);
238 236
239 // Checks the color of an object. If the object is white we jump to the 237 // Checks the color of an object. If the object is white we jump to the
240 // incremental marker. 238 // incremental marker.
241 void JumpIfWhite(Register value, Register scratch1, Register scratch2, 239 void JumpIfWhite(Register value, Register scratch1, Register scratch2,
242 Label* value_is_white, Label::Distance distance); 240 Label* value_is_white, Label::Distance distance);
243 241
244 // Notify the garbage collector that we wrote a pointer into an object. 242 // Notify the garbage collector that we wrote a pointer into an object.
245 // |object| is the object being stored into, |value| is the object being 243 // |object| is the object being stored into, |value| is the object being
246 // stored. value and scratch registers are clobbered by the operation. 244 // stored. value and scratch registers are clobbered by the operation.
247 // The offset is the offset from the start of the object, not the offset from 245 // The offset is the offset from the start of the object, not the offset from
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 } \ 1734 } \
1737 masm-> 1735 masm->
1738 #else 1736 #else
1739 #define ACCESS_MASM(masm) masm-> 1737 #define ACCESS_MASM(masm) masm->
1740 #endif 1738 #endif
1741 1739
1742 } // namespace internal 1740 } // namespace internal
1743 } // namespace v8 1741 } // namespace v8
1744 1742
1745 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1743 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698