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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 accumulator->Add("<ExternalUnsignedIntArray[%u]>", | 972 accumulator->Add("<ExternalUnsignedIntArray[%u]>", |
973 ExternalUnsignedIntArray::cast(this)->length()); | 973 ExternalUnsignedIntArray::cast(this)->length()); |
974 break; | 974 break; |
975 case EXTERNAL_FLOAT_ARRAY_TYPE: | 975 case EXTERNAL_FLOAT_ARRAY_TYPE: |
976 accumulator->Add("<ExternalFloatArray[%u]>", | 976 accumulator->Add("<ExternalFloatArray[%u]>", |
977 ExternalFloatArray::cast(this)->length()); | 977 ExternalFloatArray::cast(this)->length()); |
978 break; | 978 break; |
979 case SHARED_FUNCTION_INFO_TYPE: | 979 case SHARED_FUNCTION_INFO_TYPE: |
980 accumulator->Add("<SharedFunctionInfo>"); | 980 accumulator->Add("<SharedFunctionInfo>"); |
981 break; | 981 break; |
| 982 case JS_MESSAGE_OBJECT_TYPE: |
| 983 accumulator->Add("<JSMessageObject>"); |
| 984 break; |
982 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 985 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
983 case NAME##_TYPE: \ | 986 case NAME##_TYPE: \ |
984 accumulator->Put('<'); \ | 987 accumulator->Put('<'); \ |
985 accumulator->Add(#Name); \ | 988 accumulator->Add(#Name); \ |
986 accumulator->Put('>'); \ | 989 accumulator->Put('>'); \ |
987 break; | 990 break; |
988 STRUCT_LIST(MAKE_STRUCT_CASE) | 991 STRUCT_LIST(MAKE_STRUCT_CASE) |
989 #undef MAKE_STRUCT_CASE | 992 #undef MAKE_STRUCT_CASE |
990 case CODE_TYPE: | 993 case CODE_TYPE: |
991 accumulator->Add("<Code>"); | 994 accumulator->Add("<Code>"); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); | 1065 FixedArray::BodyDescriptor::IterateBody(this, object_size, v); |
1063 break; | 1066 break; |
1064 case JS_OBJECT_TYPE: | 1067 case JS_OBJECT_TYPE: |
1065 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 1068 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
1066 case JS_VALUE_TYPE: | 1069 case JS_VALUE_TYPE: |
1067 case JS_ARRAY_TYPE: | 1070 case JS_ARRAY_TYPE: |
1068 case JS_REGEXP_TYPE: | 1071 case JS_REGEXP_TYPE: |
1069 case JS_GLOBAL_PROXY_TYPE: | 1072 case JS_GLOBAL_PROXY_TYPE: |
1070 case JS_GLOBAL_OBJECT_TYPE: | 1073 case JS_GLOBAL_OBJECT_TYPE: |
1071 case JS_BUILTINS_OBJECT_TYPE: | 1074 case JS_BUILTINS_OBJECT_TYPE: |
| 1075 case JS_MESSAGE_OBJECT_TYPE: |
1072 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 1076 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
1073 break; | 1077 break; |
1074 case JS_FUNCTION_TYPE: | 1078 case JS_FUNCTION_TYPE: |
1075 reinterpret_cast<JSFunction*>(this) | 1079 reinterpret_cast<JSFunction*>(this) |
1076 ->JSFunctionIterateBody(object_size, v); | 1080 ->JSFunctionIterateBody(object_size, v); |
1077 break; | 1081 break; |
1078 case ODDBALL_TYPE: | 1082 case ODDBALL_TYPE: |
1079 Oddball::BodyDescriptor::IterateBody(this, v); | 1083 Oddball::BodyDescriptor::IterateBody(this, v); |
1080 break; | 1084 break; |
1081 case PROXY_TYPE: | 1085 case PROXY_TYPE: |
(...skipping 8785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9867 if (break_point_objects()->IsUndefined()) return 0; | 9871 if (break_point_objects()->IsUndefined()) return 0; |
9868 // Single beak point. | 9872 // Single beak point. |
9869 if (!break_point_objects()->IsFixedArray()) return 1; | 9873 if (!break_point_objects()->IsFixedArray()) return 1; |
9870 // Multiple break points. | 9874 // Multiple break points. |
9871 return FixedArray::cast(break_point_objects())->length(); | 9875 return FixedArray::cast(break_point_objects())->length(); |
9872 } | 9876 } |
9873 #endif | 9877 #endif |
9874 | 9878 |
9875 | 9879 |
9876 } } // namespace v8::internal | 9880 } } // namespace v8::internal |
OLD | NEW |