| 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 Object* constructor_name = | 1041 Object* constructor_name = |
| 1042 JSFunction::cast(constructor)->shared()->name(); | 1042 JSFunction::cast(constructor)->shared()->name(); |
| 1043 if (constructor_name->IsString()) { | 1043 if (constructor_name->IsString()) { |
| 1044 String* str = String::cast(constructor_name); | 1044 String* str = String::cast(constructor_name); |
| 1045 if (str->length() > 0) { | 1045 if (str->length() > 0) { |
| 1046 bool vowel = AnWord(str); | 1046 bool vowel = AnWord(str); |
| 1047 accumulator->Add("<%sa%s ", | 1047 accumulator->Add("<%sa%s ", |
| 1048 global_object ? "Global Object: " : "", | 1048 global_object ? "Global Object: " : "", |
| 1049 vowel ? "n" : ""); | 1049 vowel ? "n" : ""); |
| 1050 accumulator->Put(str); | 1050 accumulator->Put(str); |
| 1051 accumulator->Put('>'); | |
| 1052 printed = true; | 1051 printed = true; |
| 1053 } | 1052 } |
| 1054 } | 1053 } |
| 1055 } | 1054 } |
| 1056 } | 1055 } |
| 1057 if (!printed) { | 1056 if (!printed) { |
| 1058 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); | 1057 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); |
| 1059 } | 1058 } |
| 1060 } | 1059 } |
| 1061 if (IsJSValue()) { | 1060 if (IsJSValue()) { |
| (...skipping 10548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11610 if (break_point_objects()->IsUndefined()) return 0; | 11609 if (break_point_objects()->IsUndefined()) return 0; |
| 11611 // Single break point. | 11610 // Single break point. |
| 11612 if (!break_point_objects()->IsFixedArray()) return 1; | 11611 if (!break_point_objects()->IsFixedArray()) return 1; |
| 11613 // Multiple break points. | 11612 // Multiple break points. |
| 11614 return FixedArray::cast(break_point_objects())->length(); | 11613 return FixedArray::cast(break_point_objects())->length(); |
| 11615 } | 11614 } |
| 11616 #endif | 11615 #endif |
| 11617 | 11616 |
| 11618 | 11617 |
| 11619 } } // namespace v8::internal | 11618 } } // namespace v8::internal |
| OLD | NEW |