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

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

Issue 11880018: Reland r13188, r13194, r13256 (Deferred formatting of error stack trace during GC). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 7 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/isolate.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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 void ExternalStringTable::ShrinkNewStrings(int position) { 662 void ExternalStringTable::ShrinkNewStrings(int position) {
663 new_space_strings_.Rewind(position); 663 new_space_strings_.Rewind(position);
664 #ifdef VERIFY_HEAP 664 #ifdef VERIFY_HEAP
665 if (FLAG_verify_heap) { 665 if (FLAG_verify_heap) {
666 Verify(); 666 Verify();
667 } 667 }
668 #endif 668 #endif
669 } 669 }
670 670
671 671
672 void ErrorObjectList::Add(JSObject* object) {
673 list_.Add(object);
674 }
675
676
677 void ErrorObjectList::Iterate(ObjectVisitor* v) {
678 if (!list_.is_empty()) {
679 Object** start = &list_[0];
680 v->VisitPointers(start, start + list_.length());
681 }
682 }
683
684
672 void Heap::ClearInstanceofCache() { 685 void Heap::ClearInstanceofCache() {
673 set_instanceof_cache_function(the_hole_value()); 686 set_instanceof_cache_function(the_hole_value());
674 } 687 }
675 688
676 689
677 Object* Heap::ToBoolean(bool condition) { 690 Object* Heap::ToBoolean(bool condition) {
678 return condition ? true_value() : false_value(); 691 return condition ? true_value() : false_value();
679 } 692 }
680 693
681 694
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 AssertNoAllocation::~AssertNoAllocation() { } 842 AssertNoAllocation::~AssertNoAllocation() { }
830 DisableAssertNoAllocation::DisableAssertNoAllocation() { } 843 DisableAssertNoAllocation::DisableAssertNoAllocation() { }
831 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } 844 DisableAssertNoAllocation::~DisableAssertNoAllocation() { }
832 845
833 #endif 846 #endif
834 847
835 848
836 } } // namespace v8::internal 849 } } // namespace v8::internal
837 850
838 #endif // V8_HEAP_INL_H_ 851 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698