OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 case FIXED_ARRAY_TYPE: | 110 case FIXED_ARRAY_TYPE: |
111 FixedArray::cast(this)->FixedArrayPrint(); | 111 FixedArray::cast(this)->FixedArrayPrint(); |
112 break; | 112 break; |
113 case BYTE_ARRAY_TYPE: | 113 case BYTE_ARRAY_TYPE: |
114 ByteArray::cast(this)->ByteArrayPrint(); | 114 ByteArray::cast(this)->ByteArrayPrint(); |
115 break; | 115 break; |
116 case FILLER_TYPE: | 116 case FILLER_TYPE: |
117 PrintF("filler"); | 117 PrintF("filler"); |
118 break; | 118 break; |
119 case JS_OBJECT_TYPE: // fall through | 119 case JS_OBJECT_TYPE: // fall through |
| 120 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
120 case JS_ARRAY_TYPE: | 121 case JS_ARRAY_TYPE: |
121 case JS_REGEXP_TYPE: | 122 case JS_REGEXP_TYPE: |
122 JSObject::cast(this)->JSObjectPrint(); | 123 JSObject::cast(this)->JSObjectPrint(); |
123 break; | 124 break; |
124 case ODDBALL_TYPE: | 125 case ODDBALL_TYPE: |
125 Oddball::cast(this)->to_string()->Print(); | 126 Oddball::cast(this)->to_string()->Print(); |
126 break; | 127 break; |
127 case JS_FUNCTION_TYPE: | 128 case JS_FUNCTION_TYPE: |
128 JSFunction::cast(this)->JSFunctionPrint(); | 129 JSFunction::cast(this)->JSFunctionPrint(); |
129 break; | 130 break; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 case BYTE_ARRAY_TYPE: | 187 case BYTE_ARRAY_TYPE: |
187 ByteArray::cast(this)->ByteArrayVerify(); | 188 ByteArray::cast(this)->ByteArrayVerify(); |
188 break; | 189 break; |
189 case CODE_TYPE: | 190 case CODE_TYPE: |
190 Code::cast(this)->CodeVerify(); | 191 Code::cast(this)->CodeVerify(); |
191 break; | 192 break; |
192 case ODDBALL_TYPE: | 193 case ODDBALL_TYPE: |
193 Oddball::cast(this)->OddballVerify(); | 194 Oddball::cast(this)->OddballVerify(); |
194 break; | 195 break; |
195 case JS_OBJECT_TYPE: | 196 case JS_OBJECT_TYPE: |
| 197 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
196 JSObject::cast(this)->JSObjectVerify(); | 198 JSObject::cast(this)->JSObjectVerify(); |
197 break; | 199 break; |
198 case JS_VALUE_TYPE: | 200 case JS_VALUE_TYPE: |
199 JSValue::cast(this)->JSValueVerify(); | 201 JSValue::cast(this)->JSValueVerify(); |
200 break; | 202 break; |
201 case JS_FUNCTION_TYPE: | 203 case JS_FUNCTION_TYPE: |
202 JSFunction::cast(this)->JSFunctionVerify(); | 204 JSFunction::cast(this)->JSFunctionVerify(); |
203 break; | 205 break; |
204 case JS_GLOBAL_PROXY_TYPE: | 206 case JS_GLOBAL_PROXY_TYPE: |
205 JSGlobalProxy::cast(this)->JSGlobalProxyVerify(); | 207 JSGlobalProxy::cast(this)->JSGlobalProxyVerify(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 case SHORT_EXTERNAL_ASCII_STRING_TYPE: | 377 case SHORT_EXTERNAL_ASCII_STRING_TYPE: |
376 case MEDIUM_EXTERNAL_ASCII_STRING_TYPE: | 378 case MEDIUM_EXTERNAL_ASCII_STRING_TYPE: |
377 case LONG_EXTERNAL_ASCII_STRING_TYPE: | 379 case LONG_EXTERNAL_ASCII_STRING_TYPE: |
378 case SHORT_EXTERNAL_STRING_TYPE: | 380 case SHORT_EXTERNAL_STRING_TYPE: |
379 case MEDIUM_EXTERNAL_STRING_TYPE: | 381 case MEDIUM_EXTERNAL_STRING_TYPE: |
380 case LONG_EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; | 382 case LONG_EXTERNAL_STRING_TYPE: return "EXTERNAL_STRING"; |
381 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; | 383 case FIXED_ARRAY_TYPE: return "FIXED_ARRAY"; |
382 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; | 384 case BYTE_ARRAY_TYPE: return "BYTE_ARRAY"; |
383 case FILLER_TYPE: return "FILLER"; | 385 case FILLER_TYPE: return "FILLER"; |
384 case JS_OBJECT_TYPE: return "JS_OBJECT"; | 386 case JS_OBJECT_TYPE: return "JS_OBJECT"; |
| 387 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT"; |
385 case ODDBALL_TYPE: return "ODDBALL"; | 388 case ODDBALL_TYPE: return "ODDBALL"; |
386 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; | 389 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; |
387 case JS_FUNCTION_TYPE: return "JS_FUNCTION"; | 390 case JS_FUNCTION_TYPE: return "JS_FUNCTION"; |
388 case CODE_TYPE: return "CODE"; | 391 case CODE_TYPE: return "CODE"; |
389 case JS_ARRAY_TYPE: return "JS_ARRAY"; | 392 case JS_ARRAY_TYPE: return "JS_ARRAY"; |
390 case JS_REGEXP_TYPE: return "JS_REGEXP"; | 393 case JS_REGEXP_TYPE: return "JS_REGEXP"; |
391 case JS_VALUE_TYPE: return "JS_VALUE"; | 394 case JS_VALUE_TYPE: return "JS_VALUE"; |
392 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; | 395 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; |
393 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT"; | 396 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT"; |
394 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY"; | 397 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY"; |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 } | 1059 } |
1057 current = hash; | 1060 current = hash; |
1058 } | 1061 } |
1059 return true; | 1062 return true; |
1060 } | 1063 } |
1061 | 1064 |
1062 | 1065 |
1063 #endif // DEBUG | 1066 #endif // DEBUG |
1064 | 1067 |
1065 } } // namespace v8::internal | 1068 } } // namespace v8::internal |
OLD | NEW |