OLD | NEW |
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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 } else { | 859 } else { |
860 allocator = preallocated_message_space_; | 860 allocator = preallocated_message_space_; |
861 } | 861 } |
862 | 862 |
863 StringStream::ClearMentionedObjectCache(this); | 863 StringStream::ClearMentionedObjectCache(this); |
864 StringStream accumulator(allocator); | 864 StringStream accumulator(allocator); |
865 incomplete_message_ = &accumulator; | 865 incomplete_message_ = &accumulator; |
866 PrintStack(&accumulator); | 866 PrintStack(&accumulator); |
867 accumulator.OutputToFile(out); | 867 accumulator.OutputToFile(out); |
868 InitializeLoggingAndCounters(); | 868 InitializeLoggingAndCounters(); |
869 accumulator.Log(); | 869 accumulator.Log(this); |
870 incomplete_message_ = NULL; | 870 incomplete_message_ = NULL; |
871 stack_trace_nesting_level_ = 0; | 871 stack_trace_nesting_level_ = 0; |
872 if (preallocated_message_space_ == NULL) { | 872 if (preallocated_message_space_ == NULL) { |
873 // Remove the HeapStringAllocator created above. | 873 // Remove the HeapStringAllocator created above. |
874 delete allocator; | 874 delete allocator; |
875 } | 875 } |
876 } else if (stack_trace_nesting_level_ == 1) { | 876 } else if (stack_trace_nesting_level_ == 1) { |
877 stack_trace_nesting_level_++; | 877 stack_trace_nesting_level_++; |
878 OS::PrintError( | 878 OS::PrintError( |
879 "\n\nAttempt to print stack while printing stack (double fault)\n"); | 879 "\n\nAttempt to print stack while printing stack (double fault)\n"); |
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2521 | 2521 |
2522 #ifdef DEBUG | 2522 #ifdef DEBUG |
2523 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2523 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2524 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2524 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2525 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2525 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2526 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2526 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2527 #undef ISOLATE_FIELD_OFFSET | 2527 #undef ISOLATE_FIELD_OFFSET |
2528 #endif | 2528 #endif |
2529 | 2529 |
2530 } } // namespace v8::internal | 2530 } } // namespace v8::internal |
OLD | NEW |