OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 JSWeakMap::cast(this)->JSWeakMapVerify(); | 157 JSWeakMap::cast(this)->JSWeakMapVerify(); |
158 break; | 158 break; |
159 case JS_REGEXP_TYPE: | 159 case JS_REGEXP_TYPE: |
160 JSRegExp::cast(this)->JSRegExpVerify(); | 160 JSRegExp::cast(this)->JSRegExpVerify(); |
161 break; | 161 break; |
162 case FILLER_TYPE: | 162 case FILLER_TYPE: |
163 break; | 163 break; |
164 case JS_PROXY_TYPE: | 164 case JS_PROXY_TYPE: |
165 JSProxy::cast(this)->JSProxyVerify(); | 165 JSProxy::cast(this)->JSProxyVerify(); |
166 break; | 166 break; |
| 167 case JS_FUNCTION_PROXY_TYPE: |
| 168 JSFunctionProxy::cast(this)->JSFunctionProxyVerify(); |
| 169 break; |
167 case FOREIGN_TYPE: | 170 case FOREIGN_TYPE: |
168 Foreign::cast(this)->ForeignVerify(); | 171 Foreign::cast(this)->ForeignVerify(); |
169 break; | 172 break; |
170 case SHARED_FUNCTION_INFO_TYPE: | 173 case SHARED_FUNCTION_INFO_TYPE: |
171 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); | 174 SharedFunctionInfo::cast(this)->SharedFunctionInfoVerify(); |
172 break; | 175 break; |
173 case JS_MESSAGE_OBJECT_TYPE: | 176 case JS_MESSAGE_OBJECT_TYPE: |
174 JSMessageObject::cast(this)->JSMessageObjectVerify(); | 177 JSMessageObject::cast(this)->JSMessageObjectVerify(); |
175 break; | 178 break; |
176 | 179 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 break; | 507 break; |
505 } | 508 } |
506 } | 509 } |
507 | 510 |
508 | 511 |
509 void JSProxy::JSProxyVerify() { | 512 void JSProxy::JSProxyVerify() { |
510 ASSERT(IsJSProxy()); | 513 ASSERT(IsJSProxy()); |
511 VerifyPointer(handler()); | 514 VerifyPointer(handler()); |
512 } | 515 } |
513 | 516 |
| 517 |
| 518 void JSFunctionProxy::JSFunctionProxyVerify() { |
| 519 ASSERT(IsJSFunctionProxy()); |
| 520 JSProxyVerify(); |
| 521 VerifyPointer(call_trap()); |
| 522 VerifyPointer(construct_trap()); |
| 523 } |
| 524 |
| 525 |
514 void Foreign::ForeignVerify() { | 526 void Foreign::ForeignVerify() { |
515 ASSERT(IsForeign()); | 527 ASSERT(IsForeign()); |
516 } | 528 } |
517 | 529 |
518 | 530 |
519 void AccessorInfo::AccessorInfoVerify() { | 531 void AccessorInfo::AccessorInfoVerify() { |
520 CHECK(IsAccessorInfo()); | 532 CHECK(IsAccessorInfo()); |
521 VerifyPointer(getter()); | 533 VerifyPointer(getter()); |
522 VerifyPointer(setter()); | 534 VerifyPointer(setter()); |
523 VerifyPointer(name()); | 535 VerifyPointer(name()); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 ASSERT(e->IsUndefined()); | 783 ASSERT(e->IsUndefined()); |
772 } | 784 } |
773 } | 785 } |
774 } | 786 } |
775 } | 787 } |
776 | 788 |
777 | 789 |
778 #endif // DEBUG | 790 #endif // DEBUG |
779 | 791 |
780 } } // namespace v8::internal | 792 } } // namespace v8::internal |
OLD | NEW |