OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 void StoreNumberToDoubleElements(Register value_reg, | 783 void StoreNumberToDoubleElements(Register value_reg, |
784 Register key_reg, | 784 Register key_reg, |
785 Register receiver_reg, | 785 Register receiver_reg, |
786 Register elements_reg, | 786 Register elements_reg, |
787 Register scratch1, | 787 Register scratch1, |
788 Register scratch2, | 788 Register scratch2, |
789 Register scratch3, | 789 Register scratch3, |
790 Register scratch4, | 790 Register scratch4, |
791 Label* fail); | 791 Label* fail); |
792 | 792 |
793 // Check if the map of an object is equal to a specified map (either | 793 // Compare an object's map with the specified map and its transitioned |
794 // given directly or as an index into the root list) and branch to | 794 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are |
795 // label if not. Skip the smi check if not required (object is known | 795 // set with result of map compare. If multiple map compares are required, the |
796 // to be a heap object) | 796 // compare sequences branches to early_success. |
| 797 void CompareMap(Register obj, |
| 798 Register scratch, |
| 799 Handle<Map> map, |
| 800 Label* early_success, |
| 801 CompareMapMode mode = REQUIRE_EXACT_MAP); |
| 802 |
| 803 // Check if the map of an object is equal to a specified map and branch to |
| 804 // label if not. Skip the smi check if not required (object is known to be a |
| 805 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match |
| 806 // against maps that are ElementsKind transition maps of the specificed map. |
797 void CheckMap(Register obj, | 807 void CheckMap(Register obj, |
798 Register scratch, | 808 Register scratch, |
799 Handle<Map> map, | 809 Handle<Map> map, |
800 Label* fail, | 810 Label* fail, |
801 SmiCheckType smi_check_type); | 811 SmiCheckType smi_check_type, |
| 812 CompareMapMode mode = REQUIRE_EXACT_MAP); |
802 | 813 |
803 | 814 |
804 void CheckMap(Register obj, | 815 void CheckMap(Register obj, |
805 Register scratch, | 816 Register scratch, |
806 Heap::RootListIndex index, | 817 Heap::RootListIndex index, |
807 Label* fail, | 818 Label* fail, |
808 SmiCheckType smi_check_type); | 819 SmiCheckType smi_check_type); |
809 | 820 |
810 | 821 |
811 // Check if the map of an object is equal to a specified map and branch to a | 822 // Check if the map of an object is equal to a specified map and branch to a |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1337 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1327 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1338 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1328 #else | 1339 #else |
1329 #define ACCESS_MASM(masm) masm-> | 1340 #define ACCESS_MASM(masm) masm-> |
1330 #endif | 1341 #endif |
1331 | 1342 |
1332 | 1343 |
1333 } } // namespace v8::internal | 1344 } } // namespace v8::internal |
1334 | 1345 |
1335 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1346 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |