| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); | 148 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellVerify(); |
| 149 break; | 149 break; |
| 150 case JS_ARRAY_TYPE: | 150 case JS_ARRAY_TYPE: |
| 151 JSArray::cast(this)->JSArrayVerify(); | 151 JSArray::cast(this)->JSArrayVerify(); |
| 152 break; | 152 break; |
| 153 case JS_REGEXP_TYPE: | 153 case JS_REGEXP_TYPE: |
| 154 JSRegExp::cast(this)->JSRegExpVerify(); | 154 JSRegExp::cast(this)->JSRegExpVerify(); |
| 155 break; | 155 break; |
| 156 case FILLER_TYPE: | 156 case FILLER_TYPE: |
| 157 break; | 157 break; |
| 158 case JS_PROXY_TYPE: |
| 159 JSProxy::cast(this)->JSProxyVerify(); |
| 160 break; |
| 158 case PROXY_TYPE: | 161 case PROXY_TYPE: |
| 159 Proxy::cast(this)->ProxyVerify(); | 162 Proxy::cast(this)->ProxyVerify(); |
| 160 break; | 163 break; |
| 161 case SHARED_FUNCTION_INFO_TYPE: | 164 case SHARED_FUNCTION_INFO_TYPE: |
| 162 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); | 165 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); |
| 163 break; | 166 break; |
| 164 case JS_MESSAGE_OBJECT_TYPE: | 167 case JS_MESSAGE_OBJECT_TYPE: |
| 165 JSMessageObject::cast(this)->JSMessageObjectVerify(); | 168 JSMessageObject::cast(this)->JSMessageObjectVerify(); |
| 166 break; | 169 break; |
| 167 | 170 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 break; | 457 break; |
| 455 } | 458 } |
| 456 default: | 459 default: |
| 457 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); | 460 ASSERT_EQ(JSRegExp::NOT_COMPILED, TypeTag()); |
| 458 ASSERT(data()->IsUndefined()); | 461 ASSERT(data()->IsUndefined()); |
| 459 break; | 462 break; |
| 460 } | 463 } |
| 461 } | 464 } |
| 462 | 465 |
| 463 | 466 |
| 467 void JSProxy::JSProxyVerify() { |
| 468 ASSERT(IsJSProxy()); |
| 469 VerifyPointer(handler()); |
| 470 } |
| 471 |
| 464 void Proxy::ProxyVerify() { | 472 void Proxy::ProxyVerify() { |
| 465 ASSERT(IsProxy()); | 473 ASSERT(IsProxy()); |
| 466 } | 474 } |
| 467 | 475 |
| 468 | 476 |
| 469 void AccessorInfo::AccessorInfoVerify() { | 477 void AccessorInfo::AccessorInfoVerify() { |
| 470 CHECK(IsAccessorInfo()); | 478 CHECK(IsAccessorInfo()); |
| 471 VerifyPointer(getter()); | 479 VerifyPointer(getter()); |
| 472 VerifyPointer(setter()); | 480 VerifyPointer(setter()); |
| 473 VerifyPointer(name()); | 481 VerifyPointer(name()); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 ASSERT(e->IsUndefined()); | 729 ASSERT(e->IsUndefined()); |
| 722 } | 730 } |
| 723 } | 731 } |
| 724 } | 732 } |
| 725 } | 733 } |
| 726 | 734 |
| 727 | 735 |
| 728 #endif // DEBUG | 736 #endif // DEBUG |
| 729 | 737 |
| 730 } } // namespace v8::internal | 738 } } // namespace v8::internal |
| OLD | NEW |