| 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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 accumulator->Put('>'); | 1105 accumulator->Put('>'); |
| 1106 } | 1106 } |
| 1107 return; | 1107 return; |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 | 1110 |
| 1111 void JSObject::JSObjectShortPrint(StringStream* accumulator) { | 1111 void JSObject::JSObjectShortPrint(StringStream* accumulator) { |
| 1112 switch (map()->instance_type()) { | 1112 switch (map()->instance_type()) { |
| 1113 case JS_ARRAY_TYPE: { | 1113 case JS_ARRAY_TYPE: { |
| 1114 double length = JSArray::cast(this)->length()->Number(); | 1114 double length = JSArray::cast(this)->length()->Number(); |
| 1115 accumulator->Add("<JS array[%u]>", static_cast<uint32_t>(length)); | 1115 accumulator->Add("<JS Array[%u]>", static_cast<uint32_t>(length)); |
| 1116 break; | 1116 break; |
| 1117 } | 1117 } |
| 1118 case JS_WEAK_MAP_TYPE: { | 1118 case JS_WEAK_MAP_TYPE: { |
| 1119 accumulator->Add("<JS WeakMap>"); | 1119 accumulator->Add("<JS WeakMap>"); |
| 1120 break; | 1120 break; |
| 1121 } | 1121 } |
| 1122 case JS_REGEXP_TYPE: { | 1122 case JS_REGEXP_TYPE: { |
| 1123 accumulator->Add("<JS RegExp>"); | 1123 accumulator->Add("<JS RegExp>"); |
| 1124 break; | 1124 break; |
| 1125 } | 1125 } |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 | 1376 |
| 1377 switch (type) { | 1377 switch (type) { |
| 1378 case FIXED_ARRAY_TYPE: | 1378 case FIXED_ARRAY_TYPE: |
| 1379 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); | 1379 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); |
| 1380 break; | 1380 break; |
| 1381 case FIXED_DOUBLE_ARRAY_TYPE: | 1381 case FIXED_DOUBLE_ARRAY_TYPE: |
| 1382 break; | 1382 break; |
| 1383 case JS_OBJECT_TYPE: | 1383 case JS_OBJECT_TYPE: |
| 1384 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 1384 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 1385 case JS_VALUE_TYPE: | 1385 case JS_VALUE_TYPE: |
| 1386 case JS_DATE_TYPE: |
| 1386 case JS_ARRAY_TYPE: | 1387 case JS_ARRAY_TYPE: |
| 1387 case JS_SET_TYPE: | 1388 case JS_SET_TYPE: |
| 1388 case JS_MAP_TYPE: | 1389 case JS_MAP_TYPE: |
| 1389 case JS_WEAK_MAP_TYPE: | 1390 case JS_WEAK_MAP_TYPE: |
| 1390 case JS_REGEXP_TYPE: | 1391 case JS_REGEXP_TYPE: |
| 1391 case JS_GLOBAL_PROXY_TYPE: | 1392 case JS_GLOBAL_PROXY_TYPE: |
| 1392 case JS_GLOBAL_OBJECT_TYPE: | 1393 case JS_GLOBAL_OBJECT_TYPE: |
| 1393 case JS_BUILTINS_OBJECT_TYPE: | 1394 case JS_BUILTINS_OBJECT_TYPE: |
| 1394 case JS_MESSAGE_OBJECT_TYPE: | 1395 case JS_MESSAGE_OBJECT_TYPE: |
| 1395 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 1396 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
| (...skipping 11538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12934 if (break_point_objects()->IsUndefined()) return 0; | 12935 if (break_point_objects()->IsUndefined()) return 0; |
| 12935 // Single break point. | 12936 // Single break point. |
| 12936 if (!break_point_objects()->IsFixedArray()) return 1; | 12937 if (!break_point_objects()->IsFixedArray()) return 1; |
| 12937 // Multiple break points. | 12938 // Multiple break points. |
| 12938 return FixedArray::cast(break_point_objects())->length(); | 12939 return FixedArray::cast(break_point_objects())->length(); |
| 12939 } | 12940 } |
| 12940 #endif // ENABLE_DEBUGGER_SUPPORT | 12941 #endif // ENABLE_DEBUGGER_SUPPORT |
| 12941 | 12942 |
| 12942 | 12943 |
| 12943 } } // namespace v8::internal | 12944 } } // namespace v8::internal |
| OLD | NEW |