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

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

Issue 11678006: Revert r13188, r13194, r13256 (Deferred formatting of error stack trace during GC). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 void ExternalStringTable::ShrinkNewStrings(int position) { 659 void ExternalStringTable::ShrinkNewStrings(int position) {
660 new_space_strings_.Rewind(position); 660 new_space_strings_.Rewind(position);
661 #ifdef VERIFY_HEAP 661 #ifdef VERIFY_HEAP
662 if (FLAG_verify_heap) { 662 if (FLAG_verify_heap) {
663 Verify(); 663 Verify();
664 } 664 }
665 #endif 665 #endif
666 } 666 }
667 667
668 668
669 void ErrorObjectList::Add(JSObject* object) {
670 list_.Add(object);
671 }
672
673
674 void ErrorObjectList::Iterate(ObjectVisitor* v) {
675 if (!list_.is_empty()) {
676 Object** start = &list_[0];
677 v->VisitPointers(start, start + list_.length());
678 }
679 }
680
681
682 void Heap::ClearInstanceofCache() { 669 void Heap::ClearInstanceofCache() {
683 set_instanceof_cache_function(the_hole_value()); 670 set_instanceof_cache_function(the_hole_value());
684 } 671 }
685 672
686 673
687 Object* Heap::ToBoolean(bool condition) { 674 Object* Heap::ToBoolean(bool condition) {
688 return condition ? true_value() : false_value(); 675 return condition ? true_value() : false_value();
689 } 676 }
690 677
691 678
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 AssertNoAllocation::~AssertNoAllocation() { } 826 AssertNoAllocation::~AssertNoAllocation() { }
840 DisableAssertNoAllocation::DisableAssertNoAllocation() { } 827 DisableAssertNoAllocation::DisableAssertNoAllocation() { }
841 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } 828 DisableAssertNoAllocation::~DisableAssertNoAllocation() { }
842 829
843 #endif 830 #endif
844 831
845 832
846 } } // namespace v8::internal 833 } } // namespace v8::internal
847 834
848 #endif // V8_HEAP_INL_H_ 835 #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