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