| 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 Object* constructor_name = | 1002 Object* constructor_name = |
| 1003 JSFunction::cast(constructor)->shared()->name(); | 1003 JSFunction::cast(constructor)->shared()->name(); |
| 1004 if (constructor_name->IsString()) { | 1004 if (constructor_name->IsString()) { |
| 1005 String* str = String::cast(constructor_name); | 1005 String* str = String::cast(constructor_name); |
| 1006 if (str->length() > 0) { | 1006 if (str->length() > 0) { |
| 1007 bool vowel = AnWord(str); | 1007 bool vowel = AnWord(str); |
| 1008 accumulator->Add("<%sa%s ", | 1008 accumulator->Add("<%sa%s ", |
| 1009 global_object ? "Global Object: " : "", | 1009 global_object ? "Global Object: " : "", |
| 1010 vowel ? "n" : ""); | 1010 vowel ? "n" : ""); |
| 1011 accumulator->Put(str); | 1011 accumulator->Put(str); |
| 1012 accumulator->Put('>'); | |
| 1013 printed = true; | 1012 printed = true; |
| 1014 } | 1013 } |
| 1015 } | 1014 } |
| 1016 } | 1015 } |
| 1017 } | 1016 } |
| 1018 if (!printed) { | 1017 if (!printed) { |
| 1019 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); | 1018 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); |
| 1020 } | 1019 } |
| 1021 } | 1020 } |
| 1022 if (IsJSValue()) { | 1021 if (IsJSValue()) { |
| (...skipping 10827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11850 if (break_point_objects()->IsUndefined()) return 0; | 11849 if (break_point_objects()->IsUndefined()) return 0; |
| 11851 // Single beak point. | 11850 // Single beak point. |
| 11852 if (!break_point_objects()->IsFixedArray()) return 1; | 11851 if (!break_point_objects()->IsFixedArray()) return 1; |
| 11853 // Multiple break points. | 11852 // Multiple break points. |
| 11854 return FixedArray::cast(break_point_objects())->length(); | 11853 return FixedArray::cast(break_point_objects())->length(); |
| 11855 } | 11854 } |
| 11856 #endif | 11855 #endif |
| 11857 | 11856 |
| 11858 | 11857 |
| 11859 } } // namespace v8::internal | 11858 } } // namespace v8::internal |
| OLD | NEW |