OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 void CmpInstanceType(Register map, InstanceType type); | 739 void CmpInstanceType(Register map, InstanceType type); |
740 | 740 |
741 // Check if the map of an object is equal to a specified map and | 741 // Check if the map of an object is equal to a specified map and |
742 // branch to label if not. Skip the smi check if not required | 742 // branch to label if not. Skip the smi check if not required |
743 // (object is known to be a heap object) | 743 // (object is known to be a heap object) |
744 void CheckMap(Register obj, | 744 void CheckMap(Register obj, |
745 Handle<Map> map, | 745 Handle<Map> map, |
746 Label* fail, | 746 Label* fail, |
747 bool is_heap_object); | 747 bool is_heap_object); |
748 | 748 |
| 749 // Check if the map of an object is equal to a one of a specified lists map |
| 750 // and branch to label if not. Skip the smi check if not required (object is |
| 751 // known to be a heap object) |
| 752 void CheckMaps(Register obj, |
| 753 ZoneMapList* maps, |
| 754 Label* fail, |
| 755 bool is_heap_object); |
| 756 |
749 // Check if the object in register heap_object is a string. Afterwards the | 757 // Check if the object in register heap_object is a string. Afterwards the |
750 // register map contains the object map and the register instance_type | 758 // register map contains the object map and the register instance_type |
751 // contains the instance_type. The registers map and instance_type can be the | 759 // contains the instance_type. The registers map and instance_type can be the |
752 // same in which case it contains the instance type afterwards. Either of the | 760 // same in which case it contains the instance type afterwards. Either of the |
753 // registers map and instance_type can be the same as heap_object. | 761 // registers map and instance_type can be the same as heap_object. |
754 Condition IsObjectStringType(Register heap_object, | 762 Condition IsObjectStringType(Register heap_object, |
755 Register map, | 763 Register map, |
756 Register instance_type); | 764 Register instance_type); |
757 | 765 |
758 // FCmp compares and pops the two values on top of the FPU stack. | 766 // FCmp compares and pops the two values on top of the FPU stack. |
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2007 Jump(adaptor, RelocInfo::CODE_TARGET); | 2015 Jump(adaptor, RelocInfo::CODE_TARGET); |
2008 } | 2016 } |
2009 bind(&invoke); | 2017 bind(&invoke); |
2010 } | 2018 } |
2011 } | 2019 } |
2012 | 2020 |
2013 | 2021 |
2014 } } // namespace v8::internal | 2022 } } // namespace v8::internal |
2015 | 2023 |
2016 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 2024 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |