OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 #define __ ACCESS_MASM(masm()) | 734 #define __ ACCESS_MASM(masm()) |
735 | 735 |
736 | 736 |
737 Register StubCompiler::CheckPrototypes(JSObject* object, | 737 Register StubCompiler::CheckPrototypes(JSObject* object, |
738 Register object_reg, | 738 Register object_reg, |
739 JSObject* holder, | 739 JSObject* holder, |
740 Register holder_reg, | 740 Register holder_reg, |
741 Register scratch, | 741 Register scratch, |
742 String* name, | 742 String* name, |
743 int save_at_depth, | 743 int save_at_depth, |
744 Label* miss) { | 744 Label* miss, |
| 745 Register extra) { |
745 // Check that the maps haven't changed. | 746 // Check that the maps haven't changed. |
746 Register result = | 747 Register result = |
747 masm()->CheckMaps(object, object_reg, holder, holder_reg, scratch, | 748 masm()->CheckMaps(object, object_reg, holder, holder_reg, scratch, |
748 save_at_depth, miss); | 749 save_at_depth, miss); |
749 | 750 |
750 // If we've skipped any global objects, it's not enough to verify | 751 // If we've skipped any global objects, it's not enough to verify |
751 // that their maps haven't changed. We also need to check that the | 752 // that their maps haven't changed. We also need to check that the |
752 // property cell for the property is still empty. | 753 // property cell for the property is still empty. |
753 while (object != holder) { | 754 while (object != holder) { |
754 if (object->IsGlobalObject()) { | 755 if (object->IsGlobalObject()) { |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 // Return the generated code. | 2149 // Return the generated code. |
2149 return GetCode(); | 2150 return GetCode(); |
2150 } | 2151 } |
2151 | 2152 |
2152 | 2153 |
2153 #undef __ | 2154 #undef __ |
2154 | 2155 |
2155 } } // namespace v8::internal | 2156 } } // namespace v8::internal |
2156 | 2157 |
2157 #endif // V8_TARGET_ARCH_ARM | 2158 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |