OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 JSValue::cast(this)->value()->ShortPrint(accumulator); | 1063 JSValue::cast(this)->value()->ShortPrint(accumulator); |
1064 } | 1064 } |
1065 accumulator->Put('>'); | 1065 accumulator->Put('>'); |
1066 break; | 1066 break; |
1067 } | 1067 } |
1068 } | 1068 } |
1069 } | 1069 } |
1070 | 1070 |
1071 | 1071 |
1072 void HeapObject::HeapObjectShortPrint(StringStream* accumulator) { | 1072 void HeapObject::HeapObjectShortPrint(StringStream* accumulator) { |
1073 // if (!HEAP->InNewSpace(this)) PrintF("*", this); | |
1074 Heap* heap = GetHeap(); | 1073 Heap* heap = GetHeap(); |
1075 if (!heap->Contains(this)) { | 1074 if (!heap->Contains(this)) { |
1076 accumulator->Add("!!!INVALID POINTER!!!"); | 1075 accumulator->Add("!!!INVALID POINTER!!!"); |
1077 return; | 1076 return; |
1078 } | 1077 } |
1079 if (!heap->Contains(map())) { | 1078 if (!heap->Contains(map())) { |
1080 accumulator->Add("!!!INVALID MAP!!!"); | 1079 accumulator->Add("!!!INVALID MAP!!!"); |
1081 return; | 1080 return; |
1082 } | 1081 } |
1083 | 1082 |
(...skipping 10681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11765 if (break_point_objects()->IsUndefined()) return 0; | 11764 if (break_point_objects()->IsUndefined()) return 0; |
11766 // Single break point. | 11765 // Single break point. |
11767 if (!break_point_objects()->IsFixedArray()) return 1; | 11766 if (!break_point_objects()->IsFixedArray()) return 1; |
11768 // Multiple break points. | 11767 // Multiple break points. |
11769 return FixedArray::cast(break_point_objects())->length(); | 11768 return FixedArray::cast(break_point_objects())->length(); |
11770 } | 11769 } |
11771 #endif | 11770 #endif |
11772 | 11771 |
11773 | 11772 |
11774 } } // namespace v8::internal | 11773 } } // namespace v8::internal |
OLD | NEW |