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

Side by Side Diff: src/v8globals.h

Issue 7044082: Minor cleanup of StoreBuffer related heap iteration methods. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 6 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
« src/store-buffer.cc ('K') | « src/store-buffer.cc ('k') | no next file » | 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 struct CodeDesc { 251 struct CodeDesc {
252 byte* buffer; 252 byte* buffer;
253 int buffer_size; 253 int buffer_size;
254 int instr_size; 254 int instr_size;
255 int reloc_size; 255 int reloc_size;
256 Assembler* origin; 256 Assembler* origin;
257 }; 257 };
258 258
259 259
260 // Callback function on object slots, used for iterating heap object slots in
261 // HeapObjects, global pointers to heap objects, etc. The callback allows the
262 // callback function to change the value of the slot.
263 typedef void (*ObjectSlotCallback)(HeapObject** pointer, HeapObject* object);
264
265
266 // Callback function used for iterating objects in heap spaces, 260 // Callback function used for iterating objects in heap spaces,
267 // for example, scanning heap objects. 261 // for example, scanning heap objects.
268 typedef int (*HeapObjectCallback)(HeapObject* obj); 262 typedef int (*HeapObjectCallback)(HeapObject* obj);
269 263
270 264
271 // Callback function used for checking constraints when copying/relocating 265 // Callback function used for checking constraints when copying/relocating
272 // objects. Returns true if an object can be copied/relocated from its 266 // objects. Returns true if an object can be copied/relocated from its
273 // old_addr to a new_addr. 267 // old_addr to a new_addr.
274 typedef bool (*ConstraintCallback)(Address new_addr, Address old_addr); 268 typedef bool (*ConstraintCallback)(Address new_addr, Address old_addr);
275 269
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // Used to specify whether a receiver is implicitly or explicitly 513 // Used to specify whether a receiver is implicitly or explicitly
520 // provided to a call. 514 // provided to a call.
521 enum CallKind { 515 enum CallKind {
522 CALL_AS_METHOD = 0, 516 CALL_AS_METHOD = 0,
523 CALL_AS_FUNCTION 517 CALL_AS_FUNCTION
524 }; 518 };
525 519
526 } } // namespace v8::internal 520 } } // namespace v8::internal
527 521
528 #endif // V8_V8GLOBALS_H_ 522 #endif // V8_V8GLOBALS_H_
OLDNEW
« src/store-buffer.cc ('K') | « src/store-buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698