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

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

Issue 19971002: Rip out infrastructure for deferred stack trace formatting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/mark-compact.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 void ExternalStringTable::ShrinkNewStrings(int position) { 705 void ExternalStringTable::ShrinkNewStrings(int position) {
706 new_space_strings_.Rewind(position); 706 new_space_strings_.Rewind(position);
707 #ifdef VERIFY_HEAP 707 #ifdef VERIFY_HEAP
708 if (FLAG_verify_heap) { 708 if (FLAG_verify_heap) {
709 Verify(); 709 Verify();
710 } 710 }
711 #endif 711 #endif
712 } 712 }
713 713
714 714
715 void ErrorObjectList::Add(JSObject* object) {
716 list_.Add(object);
717 }
718
719
720 void ErrorObjectList::Iterate(ObjectVisitor* v) {
721 if (!list_.is_empty()) {
722 Object** start = &list_[0];
723 v->VisitPointers(start, start + list_.length());
724 }
725 }
726
727
728 void Heap::ClearInstanceofCache() { 715 void Heap::ClearInstanceofCache() {
729 set_instanceof_cache_function(the_hole_value()); 716 set_instanceof_cache_function(the_hole_value());
730 } 717 }
731 718
732 719
733 Object* Heap::ToBoolean(bool condition) { 720 Object* Heap::ToBoolean(bool condition) {
734 return condition ? true_value() : false_value(); 721 return condition ? true_value() : false_value();
735 } 722 }
736 723
737 724
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 DisallowAllocationFailure::~DisallowAllocationFailure() { 846 DisallowAllocationFailure::~DisallowAllocationFailure() {
860 #ifdef DEBUG 847 #ifdef DEBUG
861 HEAP->disallow_allocation_failure_ = old_state_; 848 HEAP->disallow_allocation_failure_ = old_state_;
862 #endif 849 #endif
863 } 850 }
864 851
865 852
866 } } // namespace v8::internal 853 } } // namespace v8::internal
867 854
868 #endif // V8_HEAP_INL_H_ 855 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698