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

Side by Side Diff: src/heap.h

Issue 4061002: [Isolates] Clean up some usages of the heap macro. (Closed)
Patch Set: 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 | « no previous file | src/heap.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 V(identity_hash_symbol, "v8::IdentityHash") \ 207 V(identity_hash_symbol, "v8::IdentityHash") \
208 V(closure_symbol, "(closure)") 208 V(closure_symbol, "(closure)")
209 209
210 210
211 // Forward declaration of the GCTracer class. 211 // Forward declaration of the GCTracer class.
212 class GCTracer; 212 class GCTracer;
213 class HeapStats; 213 class HeapStats;
214 class Isolate; 214 class Isolate;
215 215
216 216
217 typedef String* (*ExternalStringTableUpdaterCallback)(Object** pointer); 217 typedef String* (*ExternalStringTableUpdaterCallback)(Heap* heap,
218 Object** pointer);
218 219
219 typedef bool (*DirtyRegionCallback)(Heap* heap, 220 typedef bool (*DirtyRegionCallback)(Heap* heap,
220 Address start, 221 Address start,
221 Address end, 222 Address end,
222 ObjectSlotCallback copy_object_func); 223 ObjectSlotCallback copy_object_func);
223 224
224 225
225 // The all static Heap captures the interface to the global object heap. 226 // The all static Heap captures the interface to the global object heap.
226 // All JavaScript contexts by this process share the same object heap. 227 // All JavaScript contexts by this process share the same object heap.
227 228
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 1366
1366 Object* CreateOddball(const char* to_string, Object* to_number, byte kind); 1367 Object* CreateOddball(const char* to_string, Object* to_number, byte kind);
1367 1368
1368 // Allocate empty fixed array. 1369 // Allocate empty fixed array.
1369 Object* AllocateEmptyFixedArray(); 1370 Object* AllocateEmptyFixedArray();
1370 1371
1371 // Performs a minor collection in new generation. 1372 // Performs a minor collection in new generation.
1372 void Scavenge(); 1373 void Scavenge();
1373 1374
1374 static String* UpdateNewSpaceReferenceInExternalStringTableEntry( 1375 static String* UpdateNewSpaceReferenceInExternalStringTableEntry(
1376 Heap* heap,
1375 Object** pointer); 1377 Object** pointer);
1376 1378
1377 Address DoScavenge(ObjectVisitor* scavenge_visitor, Address new_space_front); 1379 Address DoScavenge(ObjectVisitor* scavenge_visitor, Address new_space_front);
1378 1380
1379 // Performs a major collection in the whole heap. 1381 // Performs a major collection in the whole heap.
1380 void MarkCompact(GCTracer* tracer); 1382 void MarkCompact(GCTracer* tracer);
1381 1383
1382 // Code to be run before and after mark-compact. 1384 // Code to be run before and after mark-compact.
1383 void MarkCompactPrologue(bool is_compacting); 1385 void MarkCompactPrologue(bool is_compacting);
1384 1386
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 SubCache* caches_[kNumberOfCaches]; 2098 SubCache* caches_[kNumberOfCaches];
2097 DISALLOW_COPY_AND_ASSIGN(TranscendentalCache); 2099 DISALLOW_COPY_AND_ASSIGN(TranscendentalCache);
2098 }; 2100 };
2099 2101
2100 2102
2101 } } // namespace v8::internal 2103 } } // namespace v8::internal
2102 2104
2103 #undef HEAP 2105 #undef HEAP
2104 2106
2105 #endif // V8_HEAP_H_ 2107 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698