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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 Label* on_not_flat_ascii_string); | 877 Label* on_not_flat_ascii_string); |
878 | 878 |
879 // Checks if both objects are sequential ASCII strings, and jumps to label | 879 // Checks if both objects are sequential ASCII strings, and jumps to label |
880 // if either is not. | 880 // if either is not. |
881 void JumpIfNotBothSequentialAsciiStrings(Register object1, | 881 void JumpIfNotBothSequentialAsciiStrings(Register object1, |
882 Register object2, | 882 Register object2, |
883 Register scratch1, | 883 Register scratch1, |
884 Register scratch2, | 884 Register scratch2, |
885 Label* on_not_flat_ascii_strings); | 885 Label* on_not_flat_ascii_strings); |
886 | 886 |
| 887 // Checks if the given register or operand is a unique name |
| 888 void JumpIfNotUniqueName(Register reg, Label* not_unique_name, |
| 889 Label::Distance distance = Label::kFar) { |
| 890 JumpIfNotUniqueName(Operand(reg), not_unique_name, distance); |
| 891 } |
| 892 |
| 893 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name, |
| 894 Label::Distance distance = Label::kFar); |
| 895 |
887 static int SafepointRegisterStackIndex(Register reg) { | 896 static int SafepointRegisterStackIndex(Register reg) { |
888 return SafepointRegisterStackIndex(reg.code()); | 897 return SafepointRegisterStackIndex(reg.code()); |
889 } | 898 } |
890 | 899 |
891 // Activation support. | 900 // Activation support. |
892 void EnterFrame(StackFrame::Type type); | 901 void EnterFrame(StackFrame::Type type); |
893 void LeaveFrame(StackFrame::Type type); | 902 void LeaveFrame(StackFrame::Type type); |
894 | 903 |
895 // Expects object in eax and returns map with validated enum cache | 904 // Expects object in eax and returns map with validated enum cache |
896 // in eax. Assumes that any other register can be used as a scratch. | 905 // in eax. Assumes that any other register can be used as a scratch. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 } \ | 1053 } \ |
1045 masm-> | 1054 masm-> |
1046 #else | 1055 #else |
1047 #define ACCESS_MASM(masm) masm-> | 1056 #define ACCESS_MASM(masm) masm-> |
1048 #endif | 1057 #endif |
1049 | 1058 |
1050 | 1059 |
1051 } } // namespace v8::internal | 1060 } } // namespace v8::internal |
1052 | 1061 |
1053 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1062 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |