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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 | 800 |
801 // Return and drop arguments from stack, where the number of arguments | 801 // Return and drop arguments from stack, where the number of arguments |
802 // may be bigger than 2^16 - 1. Requires a scratch register. | 802 // may be bigger than 2^16 - 1. Requires a scratch register. |
803 void Ret(int bytes_dropped, Register scratch); | 803 void Ret(int bytes_dropped, Register scratch); |
804 | 804 |
805 // Emit code to discard a non-negative number of pointer-sized elements | 805 // Emit code to discard a non-negative number of pointer-sized elements |
806 // from the stack, clobbering only the esp register. | 806 // from the stack, clobbering only the esp register. |
807 void Drop(int element_count); | 807 void Drop(int element_count); |
808 | 808 |
809 void Call(Label* target) { call(target); } | 809 void Call(Label* target) { call(target); } |
| 810 void Push(Register src) { push(src); } |
| 811 void Pop(Register dst) { pop(dst); } |
810 | 812 |
811 // Emit call to the code we are currently generating. | 813 // Emit call to the code we are currently generating. |
812 void CallSelf() { | 814 void CallSelf() { |
813 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 815 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
814 call(self, RelocInfo::CODE_TARGET); | 816 call(self, RelocInfo::CODE_TARGET); |
815 } | 817 } |
816 | 818 |
817 // Move if the registers are not identical. | 819 // Move if the registers are not identical. |
818 void Move(Register target, Register source); | 820 void Move(Register target, Register source); |
819 | 821 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 } \ | 1055 } \ |
1054 masm-> | 1056 masm-> |
1055 #else | 1057 #else |
1056 #define ACCESS_MASM(masm) masm-> | 1058 #define ACCESS_MASM(masm) masm-> |
1057 #endif | 1059 #endif |
1058 | 1060 |
1059 | 1061 |
1060 } } // namespace v8::internal | 1062 } } // namespace v8::internal |
1061 | 1063 |
1062 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1064 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |