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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
838 Label* miss, | 838 Label* miss, |
839 bool miss_on_bound_function = false); | 839 bool miss_on_bound_function = false); |
840 | 840 |
841 // Compare object type for heap object. heap_object contains a non-Smi | 841 // Compare object type for heap object. heap_object contains a non-Smi |
842 // whose object type should be compared with the given type. This both | 842 // whose object type should be compared with the given type. This both |
843 // sets the flags and leaves the object type in the type_reg register. | 843 // sets the flags and leaves the object type in the type_reg register. |
844 // It leaves the map in the map register (unless the type_reg and map register | 844 // It leaves the map in the map register (unless the type_reg and map register |
845 // are the same register). It leaves the heap object in the heap_object | 845 // are the same register). It leaves the heap object in the heap_object |
846 // register unless the heap_object register is the same register as one of the | 846 // register unless the heap_object register is the same register as one of the |
847 // other registers. | 847 // other registers. |
848 // Type_reg can be no_reg. In that case ip is used. | |
848 void CompareObjectType(Register heap_object, | 849 void CompareObjectType(Register heap_object, |
849 Register map, | 850 Register map, |
850 Register type_reg, | 851 Register type_reg, |
851 InstanceType type); | 852 InstanceType type); |
852 | 853 |
854 // Compare object type for heap object. Branch to false_label if type | |
855 // is lower than min_type or greater than max_type. | |
ulan
2013/11/22 15:43:46
Add a comment that it writes map to the given map
| |
856 void CheckObjectTypeRange(Register heap_object, | |
857 Register map, | |
ulan
2013/11/22 15:43:46
Indentation is off
| |
858 InstanceType min_type, | |
859 InstanceType max_type, | |
860 Label* false_label); | |
861 | |
853 // Compare instance type in a map. map contains a valid map object whose | 862 // Compare instance type in a map. map contains a valid map object whose |
854 // object type should be compared with the given type. This both | 863 // object type should be compared with the given type. This both |
855 // sets the flags and leaves the object type in the type_reg register. | 864 // sets the flags and leaves the object type in the type_reg register. |
856 void CompareInstanceType(Register map, | 865 void CompareInstanceType(Register map, |
857 Register type_reg, | 866 Register type_reg, |
858 InstanceType type); | 867 InstanceType type); |
859 | 868 |
860 | 869 |
861 // Check if a map for a JSObject indicates that the object has fast elements. | 870 // Check if a map for a JSObject indicates that the object has fast elements. |
862 // Jump to the specified label if it does not. | 871 // Jump to the specified label if it does not. |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1527 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1536 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1528 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1537 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1529 #else | 1538 #else |
1530 #define ACCESS_MASM(masm) masm-> | 1539 #define ACCESS_MASM(masm) masm-> |
1531 #endif | 1540 #endif |
1532 | 1541 |
1533 | 1542 |
1534 } } // namespace v8::internal | 1543 } } // namespace v8::internal |
1535 | 1544 |
1536 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1545 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |