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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 void CheckMap(Register obj, | 902 void CheckMap(Register obj, |
903 Handle<Map> map, | 903 Handle<Map> map, |
904 Label* fail, | 904 Label* fail, |
905 SmiCheckType smi_check_type, | 905 SmiCheckType smi_check_type, |
906 CompareMapMode mode = REQUIRE_EXACT_MAP); | 906 CompareMapMode mode = REQUIRE_EXACT_MAP); |
907 | 907 |
908 // Check if the map of an object is equal to a specified map and branch to a | 908 // Check if the map of an object is equal to a specified map and branch to a |
909 // specified target if equal. Skip the smi check if not required (object is | 909 // specified target if equal. Skip the smi check if not required (object is |
910 // known to be a heap object) | 910 // known to be a heap object) |
911 void DispatchMap(Register obj, | 911 void DispatchMap(Register obj, |
| 912 Register unused, |
912 Handle<Map> map, | 913 Handle<Map> map, |
913 Handle<Code> success, | 914 Handle<Code> success, |
914 SmiCheckType smi_check_type); | 915 SmiCheckType smi_check_type); |
915 | 916 |
916 // Check if the object in register heap_object is a string. Afterwards the | 917 // Check if the object in register heap_object is a string. Afterwards the |
917 // register map contains the object map and the register instance_type | 918 // register map contains the object map and the register instance_type |
918 // contains the instance_type. The registers map and instance_type can be the | 919 // contains the instance_type. The registers map and instance_type can be the |
919 // same in which case it contains the instance type afterwards. Either of the | 920 // same in which case it contains the instance type afterwards. Either of the |
920 // registers map and instance_type can be the same as heap_object. | 921 // registers map and instance_type can be the same as heap_object. |
921 Condition IsObjectStringType(Register heap_object, | 922 Condition IsObjectStringType(Register heap_object, |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 masm->popfq(); \ | 1507 masm->popfq(); \ |
1507 } \ | 1508 } \ |
1508 masm-> | 1509 masm-> |
1509 #else | 1510 #else |
1510 #define ACCESS_MASM(masm) masm-> | 1511 #define ACCESS_MASM(masm) masm-> |
1511 #endif | 1512 #endif |
1512 | 1513 |
1513 } } // namespace v8::internal | 1514 } } // namespace v8::internal |
1514 | 1515 |
1515 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1516 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |