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

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

Issue 6113004: Version 3.0.7 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 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
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ 514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \
515 CALL_AND_RETRY(FUNCTION_CALL, \ 515 CALL_AND_RETRY(FUNCTION_CALL, \
516 return Handle<TYPE>(TYPE::cast(__object__)), \ 516 return Handle<TYPE>(TYPE::cast(__object__)), \
517 return Handle<TYPE>()) 517 return Handle<TYPE>())
518 518
519 519
520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ 520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \
521 CALL_AND_RETRY(FUNCTION_CALL, return, return) 521 CALL_AND_RETRY(FUNCTION_CALL, return, return)
522 522
523 523
524 #define CALL_HEAP_FUNCTION_INLINE(FUNCTION_CALL) \
525 CALL_AND_RETRY(FUNCTION_CALL, break, break)
526
527
528 #ifdef DEBUG 524 #ifdef DEBUG
529 525
530 inline bool Heap::allow_allocation(bool new_state) { 526 inline bool Heap::allow_allocation(bool new_state) {
531 bool old = allocation_allowed_; 527 bool old = allocation_allowed_;
532 allocation_allowed_ = new_state; 528 allocation_allowed_ = new_state;
533 return old; 529 return old;
534 } 530 }
535 531
536 #endif 532 #endif
537 533
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 578
583 579
584 void ExternalStringTable::ShrinkNewStrings(int position) { 580 void ExternalStringTable::ShrinkNewStrings(int position) {
585 new_space_strings_.Rewind(position); 581 new_space_strings_.Rewind(position);
586 Verify(); 582 Verify();
587 } 583 }
588 584
589 } } // namespace v8::internal 585 } } // namespace v8::internal
590 586
591 #endif // V8_HEAP_INL_H_ 587 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698