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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 | 815 |
816 // Control Flow | 816 // Control Flow |
817 void Jump(Address destination, RelocInfo::Mode rmode); | 817 void Jump(Address destination, RelocInfo::Mode rmode); |
818 void Jump(ExternalReference ext); | 818 void Jump(ExternalReference ext); |
819 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); | 819 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); |
820 | 820 |
821 void Call(Address destination, RelocInfo::Mode rmode); | 821 void Call(Address destination, RelocInfo::Mode rmode); |
822 void Call(ExternalReference ext); | 822 void Call(ExternalReference ext); |
823 void Call(Handle<Code> code_object, | 823 void Call(Handle<Code> code_object, |
824 RelocInfo::Mode rmode, | 824 RelocInfo::Mode rmode, |
825 unsigned ast_id = kNoASTId); | 825 TypeFeedbackId ast_id = TypeFeedbackId::None()); |
826 | 826 |
827 // The size of the code generated for different call instructions. | 827 // The size of the code generated for different call instructions. |
828 int CallSize(Address destination, RelocInfo::Mode rmode) { | 828 int CallSize(Address destination, RelocInfo::Mode rmode) { |
829 return kCallInstructionLength; | 829 return kCallInstructionLength; |
830 } | 830 } |
831 int CallSize(ExternalReference ext); | 831 int CallSize(ExternalReference ext); |
832 int CallSize(Handle<Code> code_object) { | 832 int CallSize(Handle<Code> code_object) { |
833 // Code calls use 32-bit relative addressing. | 833 // Code calls use 32-bit relative addressing. |
834 return kShortCallInstructionLength; | 834 return kShortCallInstructionLength; |
835 } | 835 } |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 void LoadGlobalFunction(int index, Register function); | 1153 void LoadGlobalFunction(int index, Register function); |
1154 | 1154 |
1155 // Load the initial map from the global function. The registers | 1155 // Load the initial map from the global function. The registers |
1156 // function and map can be the same. | 1156 // function and map can be the same. |
1157 void LoadGlobalFunctionInitialMap(Register function, Register map); | 1157 void LoadGlobalFunctionInitialMap(Register function, Register map); |
1158 | 1158 |
1159 // --------------------------------------------------------------------------- | 1159 // --------------------------------------------------------------------------- |
1160 // Runtime calls | 1160 // Runtime calls |
1161 | 1161 |
1162 // Call a code stub. | 1162 // Call a code stub. |
1163 void CallStub(CodeStub* stub, unsigned ast_id = kNoASTId); | 1163 void CallStub(CodeStub* stub, TypeFeedbackId ast_id = TypeFeedbackId::None()); |
1164 | 1164 |
1165 // Tail call a code stub (jump). | 1165 // Tail call a code stub (jump). |
1166 void TailCallStub(CodeStub* stub); | 1166 void TailCallStub(CodeStub* stub); |
1167 | 1167 |
1168 // Return from a code stub after popping its arguments. | 1168 // Return from a code stub after popping its arguments. |
1169 void StubReturn(int argc); | 1169 void StubReturn(int argc); |
1170 | 1170 |
1171 // Call a runtime routine. | 1171 // Call a runtime routine. |
1172 void CallRuntime(const Runtime::Function* f, int num_arguments); | 1172 void CallRuntime(const Runtime::Function* f, int num_arguments); |
1173 | 1173 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 masm->popfd(); \ | 1482 masm->popfd(); \ |
1483 } \ | 1483 } \ |
1484 masm-> | 1484 masm-> |
1485 #else | 1485 #else |
1486 #define ACCESS_MASM(masm) masm-> | 1486 #define ACCESS_MASM(masm) masm-> |
1487 #endif | 1487 #endif |
1488 | 1488 |
1489 } } // namespace v8::internal | 1489 } } // namespace v8::internal |
1490 | 1490 |
1491 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1491 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |