| 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 PrintProperties(); | 768 PrintProperties(); |
| 769 PrintElements(); | 769 PrintElements(); |
| 770 | 770 |
| 771 PrintF("\n"); | 771 PrintF("\n"); |
| 772 } | 772 } |
| 773 | 773 |
| 774 | 774 |
| 775 void JSFunction::JSFunctionVerify() { | 775 void JSFunction::JSFunctionVerify() { |
| 776 CHECK(IsJSFunction()); | 776 CHECK(IsJSFunction()); |
| 777 VerifyObjectField(kPrototypeOrInitialMapOffset); | 777 VerifyObjectField(kPrototypeOrInitialMapOffset); |
| 778 VerifyObjectField(kNextFunctionLinkOffset); |
| 779 CHECK(next_function_link()->IsUndefined() || |
| 780 next_function_link()->IsJSFunction()); |
| 778 } | 781 } |
| 779 | 782 |
| 780 | 783 |
| 781 void SharedFunctionInfo::SharedFunctionInfoPrint() { | 784 void SharedFunctionInfo::SharedFunctionInfoPrint() { |
| 782 HeapObject::PrintHeader("SharedFunctionInfo"); | 785 HeapObject::PrintHeader("SharedFunctionInfo"); |
| 783 PrintF(" - name: "); | 786 PrintF(" - name: "); |
| 784 name()->ShortPrint(); | 787 name()->ShortPrint(); |
| 785 PrintF("\n - expected_nof_properties: %d", expected_nof_properties()); | 788 PrintF("\n - expected_nof_properties: %d", expected_nof_properties()); |
| 786 PrintF("\n - instance class name = "); | 789 PrintF("\n - instance class name = "); |
| 787 instance_class_name()->Print(); | 790 instance_class_name()->Print(); |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 ASSERT(e->IsUndefined()); | 1397 ASSERT(e->IsUndefined()); |
| 1395 } | 1398 } |
| 1396 } | 1399 } |
| 1397 } | 1400 } |
| 1398 } | 1401 } |
| 1399 | 1402 |
| 1400 | 1403 |
| 1401 #endif // DEBUG | 1404 #endif // DEBUG |
| 1402 | 1405 |
| 1403 } } // namespace v8::internal | 1406 } } // namespace v8::internal |
| OLD | NEW |