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

Side by Side Diff: src/heap-inl.h

Issue 9179012: Reduce boot-up memory use of V8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 500
501 #ifdef DEBUG 501 #ifdef DEBUG
502 #define GC_GREEDY_CHECK() \ 502 #define GC_GREEDY_CHECK() \
503 if (FLAG_gc_greedy) HEAP->GarbageCollectionGreedyCheck() 503 if (FLAG_gc_greedy) HEAP->GarbageCollectionGreedyCheck()
504 #else 504 #else
505 #define GC_GREEDY_CHECK() { } 505 #define GC_GREEDY_CHECK() { }
506 #endif 506 #endif
507 507
508
509 // Calls the FUNCTION_CALL function and retries it up to three times 508 // Calls the FUNCTION_CALL function and retries it up to three times
510 // to guarantee that any allocations performed during the call will 509 // to guarantee that any allocations performed during the call will
511 // succeed if there's enough memory. 510 // succeed if there's enough memory.
512 511
513 // Warning: Do not use the identifiers __object__, __maybe_object__ or 512 // Warning: Do not use the identifiers __object__, __maybe_object__ or
514 // __scope__ in a call to this macro. 513 // __scope__ in a call to this macro.
515 514
516 #define CALL_AND_RETRY(ISOLATE, FUNCTION_CALL, RETURN_VALUE, RETURN_EMPTY)\ 515 #define CALL_AND_RETRY(ISOLATE, FUNCTION_CALL, RETURN_VALUE, RETURN_EMPTY)\
517 do { \ 516 do { \
518 GC_GREEDY_CHECK(); \ 517 GC_GREEDY_CHECK(); \
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 701
703 702
704 Heap* _inline_get_heap_() { 703 Heap* _inline_get_heap_() {
705 return HEAP; 704 return HEAP;
706 } 705 }
707 706
708 707
709 } } // namespace v8::internal 708 } } // namespace v8::internal
710 709
711 #endif // V8_HEAP_INL_H_ 710 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | src/spaces.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698