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

Side by Side Diff: src/heap.h

Issue 6777011: Specialize ScavengingVisitor for the case when all logging and profiling is disabled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: use AtomicWord in VisitorDispatchTable instead of Callback Created 9 years, 8 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 | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')
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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 1444
1445 void CreateFixedStubs(); 1445 void CreateFixedStubs();
1446 1446
1447 MaybeObject* CreateOddball(const char* to_string, 1447 MaybeObject* CreateOddball(const char* to_string,
1448 Object* to_number, 1448 Object* to_number,
1449 byte kind); 1449 byte kind);
1450 1450
1451 // Allocate empty fixed array. 1451 // Allocate empty fixed array.
1452 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); 1452 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray();
1453 1453
1454 void SwitchScavengingVisitorsTableIfProfilingWasEnabled();
1455
1454 // Performs a minor collection in new generation. 1456 // Performs a minor collection in new generation.
1455 void Scavenge(); 1457 void Scavenge();
1456 1458
1457 static String* UpdateNewSpaceReferenceInExternalStringTableEntry( 1459 static String* UpdateNewSpaceReferenceInExternalStringTableEntry(
1458 Heap* heap, 1460 Heap* heap,
1459 Object** pointer); 1461 Object** pointer);
1460 1462
1461 Address DoScavenge(ObjectVisitor* scavenge_visitor, Address new_space_front); 1463 Address DoScavenge(ObjectVisitor* scavenge_visitor, Address new_space_front);
1462 1464
1463 // Performs a major collection in the whole heap. 1465 // Performs a major collection in the whole heap.
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2254 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2253 }; 2255 };
2254 #endif // DEBUG || LIVE_OBJECT_LIST 2256 #endif // DEBUG || LIVE_OBJECT_LIST
2255 2257
2256 2258
2257 } } // namespace v8::internal 2259 } } // namespace v8::internal
2258 2260
2259 #undef HEAP 2261 #undef HEAP
2260 2262
2261 #endif // V8_HEAP_H_ 2263 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698