OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 // Load a register with a long value as efficiently as possible. | 408 // Load a register with a long value as efficiently as possible. |
409 void Set(Register dst, int64_t x); | 409 void Set(Register dst, int64_t x); |
410 void Set(const Operand& dst, int64_t x); | 410 void Set(const Operand& dst, int64_t x); |
411 | 411 |
412 // Handle support | 412 // Handle support |
413 void Move(Register dst, Handle<Object> source); | 413 void Move(Register dst, Handle<Object> source); |
414 void Move(const Operand& dst, Handle<Object> source); | 414 void Move(const Operand& dst, Handle<Object> source); |
415 void Cmp(Register dst, Handle<Object> source); | 415 void Cmp(Register dst, Handle<Object> source); |
416 void Cmp(const Operand& dst, Handle<Object> source); | 416 void Cmp(const Operand& dst, Handle<Object> source); |
417 void Push(Handle<Object> source); | 417 void Push(Handle<Object> source); |
| 418 |
| 419 // Emit code to discard a non-negative number of pointer-sized elements |
| 420 // from the stack, clobbering only the rsp register. |
418 void Drop(int stack_elements); | 421 void Drop(int stack_elements); |
| 422 |
419 void Call(Label* target) { call(target); } | 423 void Call(Label* target) { call(target); } |
420 | 424 |
421 // Control Flow | 425 // Control Flow |
422 void Jump(Address destination, RelocInfo::Mode rmode); | 426 void Jump(Address destination, RelocInfo::Mode rmode); |
423 void Jump(ExternalReference ext); | 427 void Jump(ExternalReference ext); |
424 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); | 428 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); |
425 | 429 |
426 void Call(Address destination, RelocInfo::Mode rmode); | 430 void Call(Address destination, RelocInfo::Mode rmode); |
427 void Call(ExternalReference ext); | 431 void Call(ExternalReference ext); |
428 void Call(Handle<Code> code_object, RelocInfo::Mode rmode); | 432 void Call(Handle<Code> code_object, RelocInfo::Mode rmode); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 } \ | 756 } \ |
753 masm-> | 757 masm-> |
754 #else | 758 #else |
755 #define ACCESS_MASM(masm) masm-> | 759 #define ACCESS_MASM(masm) masm-> |
756 #endif | 760 #endif |
757 | 761 |
758 | 762 |
759 } } // namespace v8::internal | 763 } } // namespace v8::internal |
760 | 764 |
761 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 765 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |