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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 Object* constructor_name = | 1020 Object* constructor_name = |
1021 JSFunction::cast(constructor)->shared()->name(); | 1021 JSFunction::cast(constructor)->shared()->name(); |
1022 if (constructor_name->IsString()) { | 1022 if (constructor_name->IsString()) { |
1023 String* str = String::cast(constructor_name); | 1023 String* str = String::cast(constructor_name); |
1024 if (str->length() > 0) { | 1024 if (str->length() > 0) { |
1025 bool vowel = AnWord(str); | 1025 bool vowel = AnWord(str); |
1026 accumulator->Add("<%sa%s ", | 1026 accumulator->Add("<%sa%s ", |
1027 global_object ? "Global Object: " : "", | 1027 global_object ? "Global Object: " : "", |
1028 vowel ? "n" : ""); | 1028 vowel ? "n" : ""); |
1029 accumulator->Put(str); | 1029 accumulator->Put(str); |
1030 accumulator->Put('>'); | |
1031 printed = true; | 1030 printed = true; |
1032 } | 1031 } |
1033 } | 1032 } |
1034 } | 1033 } |
1035 } | 1034 } |
1036 if (!printed) { | 1035 if (!printed) { |
1037 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); | 1036 accumulator->Add("<JS %sObject", global_object ? "Global " : ""); |
1038 } | 1037 } |
1039 } | 1038 } |
1040 if (IsJSValue()) { | 1039 if (IsJSValue()) { |
(...skipping 10570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11611 if (break_point_objects()->IsUndefined()) return 0; | 11610 if (break_point_objects()->IsUndefined()) return 0; |
11612 // Single break point. | 11611 // Single break point. |
11613 if (!break_point_objects()->IsFixedArray()) return 1; | 11612 if (!break_point_objects()->IsFixedArray()) return 1; |
11614 // Multiple break points. | 11613 // Multiple break points. |
11615 return FixedArray::cast(break_point_objects())->length(); | 11614 return FixedArray::cast(break_point_objects())->length(); |
11616 } | 11615 } |
11617 #endif | 11616 #endif |
11618 | 11617 |
11619 | 11618 |
11620 } } // namespace v8::internal | 11619 } } // namespace v8::internal |
OLD | NEW |