| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 accumulator->Add("<ExternalUnsignedIntArray[%u]>", | 995 accumulator->Add("<ExternalUnsignedIntArray[%u]>", |
| 996 ExternalUnsignedIntArray::cast(this)->length()); | 996 ExternalUnsignedIntArray::cast(this)->length()); |
| 997 break; | 997 break; |
| 998 case EXTERNAL_FLOAT_ARRAY_TYPE: | 998 case EXTERNAL_FLOAT_ARRAY_TYPE: |
| 999 accumulator->Add("<ExternalFloatArray[%u]>", | 999 accumulator->Add("<ExternalFloatArray[%u]>", |
| 1000 ExternalFloatArray::cast(this)->length()); | 1000 ExternalFloatArray::cast(this)->length()); |
| 1001 break; | 1001 break; |
| 1002 case SHARED_FUNCTION_INFO_TYPE: | 1002 case SHARED_FUNCTION_INFO_TYPE: |
| 1003 accumulator->Add("<SharedFunctionInfo>"); | 1003 accumulator->Add("<SharedFunctionInfo>"); |
| 1004 break; | 1004 break; |
| 1005 case JS_MESSAGE_OBJECT_TYPE: |
| 1006 accumulator->Add("<JSMessageObject>"); |
| 1007 break; |
| 1005 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 1008 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| 1006 case NAME##_TYPE: \ | 1009 case NAME##_TYPE: \ |
| 1007 accumulator->Put('<'); \ | 1010 accumulator->Put('<'); \ |
| 1008 accumulator->Add(#Name); \ | 1011 accumulator->Add(#Name); \ |
| 1009 accumulator->Put('>'); \ | 1012 accumulator->Put('>'); \ |
| 1010 break; | 1013 break; |
| 1011 STRUCT_LIST(MAKE_STRUCT_CASE) | 1014 STRUCT_LIST(MAKE_STRUCT_CASE) |
| 1012 #undef MAKE_STRUCT_CASE | 1015 #undef MAKE_STRUCT_CASE |
| 1013 case CODE_TYPE: | 1016 case CODE_TYPE: |
| 1014 accumulator->Add("<Code>"); | 1017 accumulator->Add("<Code>"); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); | 1088 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); |
| 1086 break; | 1089 break; |
| 1087 case JS_OBJECT_TYPE: | 1090 case JS_OBJECT_TYPE: |
| 1088 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 1091 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 1089 case JS_VALUE_TYPE: | 1092 case JS_VALUE_TYPE: |
| 1090 case JS_ARRAY_TYPE: | 1093 case JS_ARRAY_TYPE: |
| 1091 case JS_REGEXP_TYPE: | 1094 case JS_REGEXP_TYPE: |
| 1092 case JS_GLOBAL_PROXY_TYPE: | 1095 case JS_GLOBAL_PROXY_TYPE: |
| 1093 case JS_GLOBAL_OBJECT_TYPE: | 1096 case JS_GLOBAL_OBJECT_TYPE: |
| 1094 case JS_BUILTINS_OBJECT_TYPE: | 1097 case JS_BUILTINS_OBJECT_TYPE: |
| 1098 case JS_MESSAGE_OBJECT_TYPE: |
| 1095 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 1099 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
| 1096 break; | 1100 break; |
| 1097 case JS_FUNCTION_TYPE: | 1101 case JS_FUNCTION_TYPE: |
| 1098 reinterpret_cast<JSFunction*>(this) | 1102 reinterpret_cast<JSFunction*>(this) |
| 1099 ->JSFunctionIterateBody(object_size, v); | 1103 ->JSFunctionIterateBody(object_size, v); |
| 1100 break; | 1104 break; |
| 1101 case ODDBALL_TYPE: | 1105 case ODDBALL_TYPE: |
| 1102 Oddball::BodyDescriptor::IterateBody(this, v); | 1106 Oddball::BodyDescriptor::IterateBody(this, v); |
| 1103 break; | 1107 break; |
| 1104 case PROXY_TYPE: | 1108 case PROXY_TYPE: |
| (...skipping 8861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9966 if (break_point_objects()->IsUndefined()) return 0; | 9970 if (break_point_objects()->IsUndefined()) return 0; |
| 9967 // Single beak point. | 9971 // Single beak point. |
| 9968 if (!break_point_objects()->IsFixedArray()) return 1; | 9972 if (!break_point_objects()->IsFixedArray()) return 1; |
| 9969 // Multiple break points. | 9973 // Multiple break points. |
| 9970 return FixedArray::cast(break_point_objects())->length(); | 9974 return FixedArray::cast(break_point_objects())->length(); |
| 9971 } | 9975 } |
| 9972 #endif | 9976 #endif |
| 9973 | 9977 |
| 9974 | 9978 |
| 9975 } } // namespace v8::internal | 9979 } } // namespace v8::internal |
| OLD | NEW |