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

Side by Side Diff: src/assembler.h

Issue 3397021: [Isolates] StaticVisitor::VisitPointer gets Heap* as additional argument (Closed)
Patch Set: Added CODE_POINTER_ALIGN per Vitaly's suggestion. Created 10 years, 2 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/globals.h » ('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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Read/modify the address of a call instruction. This is used to relocate 228 // Read/modify the address of a call instruction. This is used to relocate
229 // the break points where straight-line code is patched with a call 229 // the break points where straight-line code is patched with a call
230 // instruction. 230 // instruction.
231 INLINE(Address call_address()); 231 INLINE(Address call_address());
232 INLINE(void set_call_address(Address target)); 232 INLINE(void set_call_address(Address target));
233 INLINE(Object* call_object()); 233 INLINE(Object* call_object());
234 INLINE(void set_call_object(Object* target)); 234 INLINE(void set_call_object(Object* target));
235 INLINE(Object** call_object_address()); 235 INLINE(Object** call_object_address());
236 236
237 template<typename StaticVisitor> inline void Visit(); 237 template<typename StaticVisitor> inline void Visit(Heap* heap);
238 inline void Visit(ObjectVisitor* v); 238 inline void Visit(ObjectVisitor* v);
239 239
240 // Patch the code with some other code. 240 // Patch the code with some other code.
241 void PatchCode(byte* instructions, int instruction_count); 241 void PatchCode(byte* instructions, int instruction_count);
242 242
243 // Patch the code with a call. 243 // Patch the code with a call.
244 void PatchCodeWithCall(Address target, int guard_bytes); 244 void PatchCodeWithCall(Address target, int guard_bytes);
245 245
246 // Check whether this return sequence has been patched 246 // Check whether this return sequence has been patched
247 // with a call to the debugger. 247 // with a call to the debugger.
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 unsigned int num_bits_set; 567 unsigned int num_bits_set;
568 for (num_bits_set = 0; x; x >>= 1) { 568 for (num_bits_set = 0; x; x >>= 1) {
569 num_bits_set += x & 1; 569 num_bits_set += x & 1;
570 } 570 }
571 return num_bits_set; 571 return num_bits_set;
572 } 572 }
573 573
574 } } // namespace v8::internal 574 } } // namespace v8::internal
575 575
576 #endif // V8_ASSEMBLER_H_ 576 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698