| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); | 151 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); |
| 152 break; | 152 break; |
| 153 case JS_ARRAY_TYPE: | 153 case JS_ARRAY_TYPE: |
| 154 JSArray::cast(this)->JSArrayVerify(); | 154 JSArray::cast(this)->JSArrayVerify(); |
| 155 break; | 155 break; |
| 156 case JS_REGEXP_TYPE: | 156 case JS_REGEXP_TYPE: |
| 157 JSRegExp::cast(this)->JSRegExpVerify(); | 157 JSRegExp::cast(this)->JSRegExpVerify(); |
| 158 break; | 158 break; |
| 159 case FILLER_TYPE: | 159 case FILLER_TYPE: |
| 160 break; | 160 break; |
| 161 case JS_PROXY_TYPE: |
| 162 JSProxy::cast(this)->JSProxyVerify(); |
| 163 break; |
| 161 case PROXY_TYPE: | 164 case PROXY_TYPE: |
| 162 Proxy::cast(this)->ProxyVerify(); | 165 Proxy::cast(this)->ProxyVerify(); |
| 163 break; | 166 break; |
| 164 case SHARED_FUNCTION_INFO_TYPE: | 167 case SHARED_FUNCTION_INFO_TYPE: |
| 165 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); | 168 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); |
| 166 break; | 169 break; |
| 167 case JS_MESSAGE_OBJECT_TYPE: | 170 case JS_MESSAGE_OBJECT_TYPE: |
| 168 JSMessageObject::cast(this)->JSMessageObjectVerify(); | 171 JSMessageObject::cast(this)->JSMessageObjectVerify(); |
| 169 break; | 172 break; |
| 170 | 173 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 break; | 465 break; |
| 463 } | 466 } |
| 464 default: | 467 default: |
| 465 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); | 468 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); |
| 466 ASSERT(data()->IsUndefined()); | 469 ASSERT(data()->IsUndefined()); |
| 467 break; | 470 break; |
| 468 } | 471 } |
| 469 } | 472 } |
| 470 | 473 |
| 471 | 474 |
| 475 void JSProxy::JSProxyVerify() { |
| 476 ASSERT(IsJSProxy()); |
| 477 VerifyPointer(handler()); |
| 478 } |
| 479 |
| 472 void Proxy::ProxyVerify() { | 480 void Proxy::ProxyVerify() { |
| 473 ASSERT(IsProxy()); | 481 ASSERT(IsProxy()); |
| 474 } | 482 } |
| 475 | 483 |
| 476 | 484 |
| 477 void AccessorInfo::AccessorInfoVerify() { | 485 void AccessorInfo::AccessorInfoVerify() { |
| 478 CHECK(IsAccessorInfo()); | 486 CHECK(IsAccessorInfo()); |
| 479 VerifyPointer(getter()); | 487 VerifyPointer(getter()); |
| 480 VerifyPointer(setter()); | 488 VerifyPointer(setter()); |
| 481 VerifyPointer(name()); | 489 VerifyPointer(name()); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 ASSERT(e->IsUndefined()); | 737 ASSERT(e->IsUndefined()); |
| 730 } | 738 } |
| 731 } | 739 } |
| 732 } | 740 } |
| 733 } | 741 } |
| 734 | 742 |
| 735 | 743 |
| 736 #endif // DEBUG | 744 #endif // DEBUG |
| 737 | 745 |
| 738 } } // namespace v8::internal | 746 } } // namespace v8::internal |
| OLD | NEW |