| 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 void JSArray::JSArrayVerify() { | 623 void JSArray::JSArrayVerify() { |
| 624 JSObjectVerify(); | 624 JSObjectVerify(); |
| 625 ASSERT(length()->IsNumber() || length()->IsUndefined()); | 625 ASSERT(length()->IsNumber() || length()->IsUndefined()); |
| 626 ASSERT(elements()->IsUndefined() || elements()->IsFixedArray()); | 626 ASSERT(elements()->IsUndefined() || elements()->IsFixedArray()); |
| 627 } | 627 } |
| 628 | 628 |
| 629 | 629 |
| 630 void JSRegExp::JSRegExpVerify() { | 630 void JSRegExp::JSRegExpVerify() { |
| 631 JSObjectVerify(); | 631 JSObjectVerify(); |
| 632 ASSERT(type()->IsSmi() || type()->IsUndefined()); | 632 ASSERT(type()->IsSmi() || type()->IsUndefined()); |
| 633 ASSERT(data()->IsUndefined() || data()->IsFixedArray()); | 633 if (type()->IsSmi()) { |
| 634 switch (type_tag()) { |
| 635 case JSRegExp::JSCRE: |
| 636 ASSERT(data()->IsFixedArray()); |
| 637 break; |
| 638 default: |
| 639 ASSERT_EQ(JSRegExp::ATOM, type_tag()); |
| 640 ASSERT(data()->IsString()); |
| 641 break; |
| 642 } |
| 643 } else { |
| 644 ASSERT(data()->IsUndefined()); |
| 645 } |
| 634 } | 646 } |
| 635 | 647 |
| 636 | 648 |
| 637 void Proxy::ProxyPrint() { | 649 void Proxy::ProxyPrint() { |
| 638 PrintF("proxy to %p", proxy()); | 650 PrintF("proxy to %p", proxy()); |
| 639 } | 651 } |
| 640 | 652 |
| 641 | 653 |
| 642 void Proxy::ProxyVerify() { | 654 void Proxy::ProxyVerify() { |
| 643 ASSERT(IsProxy()); | 655 ASSERT(IsProxy()); |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 } | 1014 } |
| 1003 current = hash; | 1015 current = hash; |
| 1004 } | 1016 } |
| 1005 return true; | 1017 return true; |
| 1006 } | 1018 } |
| 1007 | 1019 |
| 1008 | 1020 |
| 1009 #endif // DEBUG | 1021 #endif // DEBUG |
| 1010 | 1022 |
| 1011 } } // namespace v8::internal | 1023 } } // namespace v8::internal |
| OLD | NEW |