| 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 799   PrintF("\n"); | 799   PrintF("\n"); | 
| 800 } | 800 } | 
| 801 | 801 | 
| 802 | 802 | 
| 803 void JSGlobalProxy::JSGlobalProxyVerify() { | 803 void JSGlobalProxy::JSGlobalProxyVerify() { | 
| 804   CHECK(IsJSGlobalProxy()); | 804   CHECK(IsJSGlobalProxy()); | 
| 805   JSObjectVerify(); | 805   JSObjectVerify(); | 
| 806   VerifyObjectField(JSGlobalProxy::kContextOffset); | 806   VerifyObjectField(JSGlobalProxy::kContextOffset); | 
| 807   // Make sure that this object has no properties, elements. | 807   // Make sure that this object has no properties, elements. | 
| 808   CHECK_EQ(0, properties()->length()); | 808   CHECK_EQ(0, properties()->length()); | 
| 809   CHECK(HasFastElements()); | 809   CHECK_EQ(0, elements()->length()); | 
| 810   CHECK_EQ(0, FixedArray::cast(elements())->length()); |  | 
| 811 } | 810 } | 
| 812 | 811 | 
| 813 | 812 | 
| 814 void JSGlobalObject::JSGlobalObjectPrint() { | 813 void JSGlobalObject::JSGlobalObjectPrint() { | 
| 815   PrintF("global "); | 814   PrintF("global "); | 
| 816   JSObjectPrint(); | 815   JSObjectPrint(); | 
| 817   PrintF("global context : "); | 816   PrintF("global context : "); | 
| 818   global_context()->ShortPrint(); | 817   global_context()->ShortPrint(); | 
| 819   PrintF("\n"); | 818   PrintF("\n"); | 
| 820 } | 819 } | 
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1351       ASSERT(get(i)->IsTheHole()); | 1350       ASSERT(get(i)->IsTheHole()); | 
| 1352       get(i)->Verify(); | 1351       get(i)->Verify(); | 
| 1353     } | 1352     } | 
| 1354   } | 1353   } | 
| 1355 } | 1354 } | 
| 1356 | 1355 | 
| 1357 | 1356 | 
| 1358 #endif  // DEBUG | 1357 #endif  // DEBUG | 
| 1359 | 1358 | 
| 1360 } }  // namespace v8::internal | 1359 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|