OLD | NEW |
1 // Copyright 2012 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 |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // Compare an object's map with the specified map and its transitioned | 824 // Compare an object's map with the specified map and its transitioned |
825 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are | 825 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are |
826 // set with result of map compare. If multiple map compares are required, the | 826 // set with result of map compare. If multiple map compares are required, the |
827 // compare sequences branches to early_success. | 827 // compare sequences branches to early_success. |
828 void CompareMap(Register obj, | 828 void CompareMap(Register obj, |
829 Register scratch, | 829 Register scratch, |
830 Handle<Map> map, | 830 Handle<Map> map, |
831 Label* early_success, | 831 Label* early_success, |
832 CompareMapMode mode = REQUIRE_EXACT_MAP); | 832 CompareMapMode mode = REQUIRE_EXACT_MAP); |
833 | 833 |
| 834 // As above, but the map of the object is already loaded into the register |
| 835 // which is preserved by the code generated. |
| 836 void CompareMap(Register obj_map, |
| 837 Handle<Map> map, |
| 838 Label* early_success, |
| 839 CompareMapMode mode = REQUIRE_EXACT_MAP); |
| 840 |
834 // Check if the map of an object is equal to a specified map and branch to | 841 // Check if the map of an object is equal to a specified map and branch to |
835 // label if not. Skip the smi check if not required (object is known to be a | 842 // label if not. Skip the smi check if not required (object is known to be a |
836 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match | 843 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match |
837 // against maps that are ElementsKind transition maps of the specified map. | 844 // against maps that are ElementsKind transition maps of the specified map. |
838 void CheckMap(Register obj, | 845 void CheckMap(Register obj, |
839 Register scratch, | 846 Register scratch, |
840 Handle<Map> map, | 847 Handle<Map> map, |
841 Label* fail, | 848 Label* fail, |
842 SmiCheckType smi_check_type, | 849 SmiCheckType smi_check_type, |
843 CompareMapMode mode = REQUIRE_EXACT_MAP); | 850 CompareMapMode mode = REQUIRE_EXACT_MAP); |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1386 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1380 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1387 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1381 #else | 1388 #else |
1382 #define ACCESS_MASM(masm) masm-> | 1389 #define ACCESS_MASM(masm) masm-> |
1383 #endif | 1390 #endif |
1384 | 1391 |
1385 | 1392 |
1386 } } // namespace v8::internal | 1393 } } // namespace v8::internal |
1387 | 1394 |
1388 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1395 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |