OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 6783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6794 PrintF("<failure>"); | 6794 PrintF("<failure>"); |
6795 } else if (obj->IsUndefined()) { | 6795 } else if (obj->IsUndefined()) { |
6796 PrintF("<undefined>"); | 6796 PrintF("<undefined>"); |
6797 } else if (obj->IsNull()) { | 6797 } else if (obj->IsNull()) { |
6798 PrintF("<null>"); | 6798 PrintF("<null>"); |
6799 } else if (obj->IsTrue()) { | 6799 } else if (obj->IsTrue()) { |
6800 PrintF("<true>"); | 6800 PrintF("<true>"); |
6801 } else if (obj->IsFalse()) { | 6801 } else if (obj->IsFalse()) { |
6802 PrintF("<false>"); | 6802 PrintF("<false>"); |
6803 } else { | 6803 } else { |
6804 PrintF("%p", reinterpret_cast<void*>(obj)); | 6804 PrintF("%p", obj); |
6805 } | 6805 } |
6806 } | 6806 } |
6807 | 6807 |
6808 | 6808 |
6809 static int StackSize() { | 6809 static int StackSize() { |
6810 int n = 0; | 6810 int n = 0; |
6811 for (JavaScriptFrameIterator it; !it.done(); it.Advance()) n++; | 6811 for (JavaScriptFrameIterator it; !it.done(); it.Advance()) n++; |
6812 return n; | 6812 return n; |
6813 } | 6813 } |
6814 | 6814 |
(...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10213 } else { | 10213 } else { |
10214 // Handle last resort GC and make sure to allow future allocations | 10214 // Handle last resort GC and make sure to allow future allocations |
10215 // to grow the heap without causing GCs (if possible). | 10215 // to grow the heap without causing GCs (if possible). |
10216 Counters::gc_last_resort_from_js.Increment(); | 10216 Counters::gc_last_resort_from_js.Increment(); |
10217 Heap::CollectAllGarbage(false); | 10217 Heap::CollectAllGarbage(false); |
10218 } | 10218 } |
10219 } | 10219 } |
10220 | 10220 |
10221 | 10221 |
10222 } } // namespace v8::internal | 10222 } } // namespace v8::internal |
OLD | NEW |