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

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

Issue 7639015: ARM: Optimize stubs for incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Incorporated second review by Erik Corry. Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Record in the remembered set the fact that we have a pointer to new space 178 // Record in the remembered set the fact that we have a pointer to new space
179 // at the address pointed to by the addr register. Only works if addr is not 179 // at the address pointed to by the addr register. Only works if addr is not
180 // in new space. 180 // in new space.
181 void RememberedSetHelper(Register addr, 181 void RememberedSetHelper(Register addr,
182 Register scratch, 182 Register scratch,
183 SaveFPRegsMode save_fp, 183 SaveFPRegsMode save_fp,
184 RememberedSetFinalAction and_then); 184 RememberedSetFinalAction and_then);
185 185
186 void CheckPageFlag(Register object, 186 void CheckPageFlag(Register object,
187 Register scratch, 187 Register scratch,
188 MemoryChunk::MemoryChunkFlags flag, 188 int mask,
189 Condition cc, 189 Condition cc,
190 Label* condition_met); 190 Label* condition_met);
191 191
192 // Check if object is in new space. Jumps if the object is not in new space. 192 // Check if object is in new space. Jumps if the object is not in new space.
193 // The register scratch can be object itself, but it will be clobbered. 193 // The register scratch can be object itself, but it will be clobbered.
194 void JumpIfNotInNewSpace(Register object, 194 void JumpIfNotInNewSpace(Register object,
195 Register scratch, 195 Register scratch,
196 Label* branch) { 196 Label* branch) {
197 InNewSpace(object, scratch, ne, branch); 197 InNewSpace(object, scratch, ne, branch);
198 } 198 }
(...skipping 20 matching lines...) Expand all
219 Label* on_black); 219 Label* on_black);
220 220
221 // Checks the color of an object. If the object is already grey or black 221 // Checks the color of an object. If the object is already grey or black
222 // then we just fall through, since it is already live. If it is white and 222 // then we just fall through, since it is already live. If it is white and
223 // we can determine that it doesn't need to be scanned, then we just mark it 223 // we can determine that it doesn't need to be scanned, then we just mark it
224 // black and fall through. For the rest we jump to the label so the 224 // black and fall through. For the rest we jump to the label so the
225 // incremental marker can fix its assumptions. 225 // incremental marker can fix its assumptions.
226 void EnsureNotWhite(Register object, 226 void EnsureNotWhite(Register object,
227 Register scratch1, 227 Register scratch1,
228 Register scratch2, 228 Register scratch2,
229 Label* object_is_white_and_not_data, 229 Register scratch3,
230 Label::Distance distance); 230 Label* object_is_white_and_not_data);
231 231
232 // Detects conservatively whether an object is data-only, ie it does need to 232 // Detects conservatively whether an object is data-only, ie it does need to
233 // be scanned by the garbage collector. 233 // be scanned by the garbage collector.
234 void JumpIfDataObject(Register value, 234 void JumpIfDataObject(Register value,
235 Register scratch, 235 Register scratch,
236 Label* not_data_object); 236 Label* not_data_object);
237 237
238 // Notify the garbage collector that we wrote a pointer into an object. 238 // Notify the garbage collector that we wrote a pointer into an object.
239 // |object| is the object being stored into, |value| is the object being 239 // |object| is the object being stored into, |value| is the object being
240 // stored. value and scratch registers are clobbered by the operation. 240 // stored. value and scratch registers are clobbered by the operation.
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1241 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1242 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1242 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1243 #else 1243 #else
1244 #define ACCESS_MASM(masm) masm-> 1244 #define ACCESS_MASM(masm) masm->
1245 #endif 1245 #endif
1246 1246
1247 1247
1248 } } // namespace v8::internal 1248 } } // namespace v8::internal
1249 1249
1250 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1250 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698