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

Side by Side Diff: src/assembler.h

Issue 3066044: Generalize virtually dispatched scavenger to virtually dispatched specialized visitors. (Closed)
Patch Set: cleanup Created 10 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
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/bootstrapper.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // Read/modify the address of a call instruction. This is used to relocate 229 // Read/modify the address of a call instruction. This is used to relocate
230 // the break points where straight-line code is patched with a call 230 // the break points where straight-line code is patched with a call
231 // instruction. 231 // instruction.
232 INLINE(Address call_address()); 232 INLINE(Address call_address());
233 INLINE(void set_call_address(Address target)); 233 INLINE(void set_call_address(Address target));
234 INLINE(Object* call_object()); 234 INLINE(Object* call_object());
235 INLINE(void set_call_object(Object* target)); 235 INLINE(void set_call_object(Object* target));
236 INLINE(Object** call_object_address()); 236 INLINE(Object** call_object_address());
237 237
238 template<typename StaticVisitor> inline void Visit();
238 inline void Visit(ObjectVisitor* v); 239 inline void Visit(ObjectVisitor* v);
239 240
240 // Patch the code with some other code. 241 // Patch the code with some other code.
241 void PatchCode(byte* instructions, int instruction_count); 242 void PatchCode(byte* instructions, int instruction_count);
242 243
243 // Patch the code with a call. 244 // Patch the code with a call.
244 void PatchCodeWithCall(Address target, int guard_bytes); 245 void PatchCodeWithCall(Address target, int guard_bytes);
245 246
246 // Check whether this return sequence has been patched 247 // Check whether this return sequence has been patched
247 // with a call to the debugger. 248 // with a call to the debugger.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 unsigned int num_bits_set; 565 unsigned int num_bits_set;
565 for (num_bits_set = 0; x; x >>= 1) { 566 for (num_bits_set = 0; x; x >>= 1) {
566 num_bits_set += x & 1; 567 num_bits_set += x & 1;
567 } 568 }
568 return num_bits_set; 569 return num_bits_set;
569 } 570 }
570 571
571 } } // namespace v8::internal 572 } } // namespace v8::internal
572 573
573 #endif // V8_ASSEMBLER_H_ 574 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698