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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 void CmpInstanceType(Register map, InstanceType type); | 740 void CmpInstanceType(Register map, InstanceType type); |
741 | 741 |
742 // Check if the map of an object is equal to a specified map and | 742 // Check if the map of an object is equal to a specified map and |
743 // branch to label if not. Skip the smi check if not required | 743 // branch to label if not. Skip the smi check if not required |
744 // (object is known to be a heap object) | 744 // (object is known to be a heap object) |
745 void CheckMap(Register obj, | 745 void CheckMap(Register obj, |
746 Handle<Map> map, | 746 Handle<Map> map, |
747 Label* fail, | 747 Label* fail, |
748 bool is_heap_object); | 748 bool is_heap_object); |
749 | 749 |
| 750 // Check if the map of an object is equal to a specified map and branch to a |
| 751 // specified target if equal. Skip the smi check if not required (object is |
| 752 // known to be a heap object) |
| 753 void DispatchMap(Register obj, |
| 754 Handle<Map> map, |
| 755 Handle<Code> success, |
| 756 bool is_heap_object); |
| 757 |
750 // Check if the object in register heap_object is a string. Afterwards the | 758 // Check if the object in register heap_object is a string. Afterwards the |
751 // register map contains the object map and the register instance_type | 759 // register map contains the object map and the register instance_type |
752 // contains the instance_type. The registers map and instance_type can be the | 760 // contains the instance_type. The registers map and instance_type can be the |
753 // same in which case it contains the instance type afterwards. Either of the | 761 // same in which case it contains the instance type afterwards. Either of the |
754 // registers map and instance_type can be the same as heap_object. | 762 // registers map and instance_type can be the same as heap_object. |
755 Condition IsObjectStringType(Register heap_object, | 763 Condition IsObjectStringType(Register heap_object, |
756 Register map, | 764 Register map, |
757 Register instance_type); | 765 Register instance_type); |
758 | 766 |
759 // FCmp compares and pops the two values on top of the FPU stack. | 767 // FCmp compares and pops the two values on top of the FPU stack. |
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 Jump(adaptor, RelocInfo::CODE_TARGET); | 2000 Jump(adaptor, RelocInfo::CODE_TARGET); |
1993 } | 2001 } |
1994 bind(&invoke); | 2002 bind(&invoke); |
1995 } | 2003 } |
1996 } | 2004 } |
1997 | 2005 |
1998 | 2006 |
1999 } } // namespace v8::internal | 2007 } } // namespace v8::internal |
2000 | 2008 |
2001 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 2009 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |