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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 context()->ShortPrint(); | 565 context()->ShortPrint(); |
566 PrintF("\n"); | 566 PrintF("\n"); |
567 } | 567 } |
568 | 568 |
569 | 569 |
570 void JSGlobalProxy::JSGlobalProxyVerify() { | 570 void JSGlobalProxy::JSGlobalProxyVerify() { |
571 CHECK(IsJSGlobalProxy()); | 571 CHECK(IsJSGlobalProxy()); |
572 JSObjectVerify(); | 572 JSObjectVerify(); |
573 VerifyObjectField(JSGlobalProxy::kContextOffset); | 573 VerifyObjectField(JSGlobalProxy::kContextOffset); |
574 // Make sure that this object has no properties, elements. | 574 // Make sure that this object has no properties, elements. |
575 CHECK(properties()->length() == 0); | 575 CHECK_EQ(0, properties()->length()); |
576 CHECK(elements()->length() == 0); | 576 CHECK_EQ(0, elements()->length()); |
577 } | 577 } |
578 | 578 |
579 | 579 |
580 void JSGlobalObject::JSGlobalObjectPrint() { | 580 void JSGlobalObject::JSGlobalObjectPrint() { |
581 PrintF("global "); | 581 PrintF("global "); |
582 JSObjectPrint(); | 582 JSObjectPrint(); |
583 PrintF("global context : "); | 583 PrintF("global context : "); |
584 global_context()->ShortPrint(); | 584 global_context()->ShortPrint(); |
585 PrintF("\n"); | 585 PrintF("\n"); |
586 } | 586 } |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 } | 1044 } |
1045 current = hash; | 1045 current = hash; |
1046 } | 1046 } |
1047 return true; | 1047 return true; |
1048 } | 1048 } |
1049 | 1049 |
1050 | 1050 |
1051 #endif // DEBUG | 1051 #endif // DEBUG |
1052 | 1052 |
1053 } } // namespace v8::internal | 1053 } } // namespace v8::internal |
OLD | NEW |