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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 break; | 109 break; |
110 case EXTERNAL_INT_ARRAY_TYPE: | 110 case EXTERNAL_INT_ARRAY_TYPE: |
111 ExternalIntArray::cast(this)->ExternalIntArrayVerify(); | 111 ExternalIntArray::cast(this)->ExternalIntArrayVerify(); |
112 break; | 112 break; |
113 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 113 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
114 ExternalUnsignedIntArray::cast(this)->ExternalUnsignedIntArrayVerify(); | 114 ExternalUnsignedIntArray::cast(this)->ExternalUnsignedIntArrayVerify(); |
115 break; | 115 break; |
116 case EXTERNAL_FLOAT_ARRAY_TYPE: | 116 case EXTERNAL_FLOAT_ARRAY_TYPE: |
117 ExternalFloatArray::cast(this)->ExternalFloatArrayVerify(); | 117 ExternalFloatArray::cast(this)->ExternalFloatArrayVerify(); |
118 break; | 118 break; |
| 119 case EXTERNAL_DOUBLE_ARRAY_TYPE: |
| 120 ExternalDoubleArray::cast(this)->ExternalDoubleArrayVerify(); |
| 121 break; |
119 case CODE_TYPE: | 122 case CODE_TYPE: |
120 Code::cast(this)->CodeVerify(); | 123 Code::cast(this)->CodeVerify(); |
121 break; | 124 break; |
122 case ODDBALL_TYPE: | 125 case ODDBALL_TYPE: |
123 Oddball::cast(this)->OddballVerify(); | 126 Oddball::cast(this)->OddballVerify(); |
124 break; | 127 break; |
125 case JS_OBJECT_TYPE: | 128 case JS_OBJECT_TYPE: |
126 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 129 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
127 JSObject::cast(this)->JSObjectVerify(); | 130 JSObject::cast(this)->JSObjectVerify(); |
128 break; | 131 break; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 void ExternalUnsignedIntArray::ExternalUnsignedIntArrayVerify() { | 228 void ExternalUnsignedIntArray::ExternalUnsignedIntArrayVerify() { |
226 ASSERT(IsExternalUnsignedIntArray()); | 229 ASSERT(IsExternalUnsignedIntArray()); |
227 } | 230 } |
228 | 231 |
229 | 232 |
230 void ExternalFloatArray::ExternalFloatArrayVerify() { | 233 void ExternalFloatArray::ExternalFloatArrayVerify() { |
231 ASSERT(IsExternalFloatArray()); | 234 ASSERT(IsExternalFloatArray()); |
232 } | 235 } |
233 | 236 |
234 | 237 |
| 238 void ExternalDoubleArray::ExternalDoubleArrayVerify() { |
| 239 ASSERT(IsExternalDoubleArray()); |
| 240 } |
| 241 |
| 242 |
235 void JSObject::JSObjectVerify() { | 243 void JSObject::JSObjectVerify() { |
236 VerifyHeapPointer(properties()); | 244 VerifyHeapPointer(properties()); |
237 VerifyHeapPointer(elements()); | 245 VerifyHeapPointer(elements()); |
238 if (HasFastProperties()) { | 246 if (HasFastProperties()) { |
239 CHECK_EQ(map()->unused_property_fields(), | 247 CHECK_EQ(map()->unused_property_fields(), |
240 (map()->inobject_properties() + properties()->length() - | 248 (map()->inobject_properties() + properties()->length() - |
241 map()->NextFreePropertyIndex())); | 249 map()->NextFreePropertyIndex())); |
242 } | 250 } |
243 ASSERT(map()->has_fast_elements() == | 251 ASSERT(map()->has_fast_elements() == |
244 (elements()->map() == GetHeap()->fixed_array_map() || | 252 (elements()->map() == GetHeap()->fixed_array_map() || |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 ASSERT(e->IsUndefined()); | 721 ASSERT(e->IsUndefined()); |
714 } | 722 } |
715 } | 723 } |
716 } | 724 } |
717 } | 725 } |
718 | 726 |
719 | 727 |
720 #endif // DEBUG | 728 #endif // DEBUG |
721 | 729 |
722 } } // namespace v8::internal | 730 } } // namespace v8::internal |
OLD | NEW |