| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 Register scratch2, | 513 Register scratch2, |
| 514 Label* on_fail); | 514 Label* on_fail); |
| 515 | 515 |
| 516 // --------------------------------------------------------------------------- | 516 // --------------------------------------------------------------------------- |
| 517 // Macro instructions. | 517 // Macro instructions. |
| 518 | 518 |
| 519 // Load a register with a long value as efficiently as possible. | 519 // Load a register with a long value as efficiently as possible. |
| 520 void Set(Register dst, int64_t x); | 520 void Set(Register dst, int64_t x); |
| 521 void Set(const Operand& dst, int64_t x); | 521 void Set(const Operand& dst, int64_t x); |
| 522 | 522 |
| 523 // Move if the registers are not identical. |
| 524 void Move(Register target, Register source); |
| 525 |
| 523 // Handle support | 526 // Handle support |
| 524 void Move(Register dst, Handle<Object> source); | 527 void Move(Register dst, Handle<Object> source); |
| 525 void Move(const Operand& dst, Handle<Object> source); | 528 void Move(const Operand& dst, Handle<Object> source); |
| 526 void Cmp(Register dst, Handle<Object> source); | 529 void Cmp(Register dst, Handle<Object> source); |
| 527 void Cmp(const Operand& dst, Handle<Object> source); | 530 void Cmp(const Operand& dst, Handle<Object> source); |
| 528 void Push(Handle<Object> source); | 531 void Push(Handle<Object> source); |
| 529 | 532 |
| 530 // Emit code to discard a non-negative number of pointer-sized elements | 533 // Emit code to discard a non-negative number of pointer-sized elements |
| 531 // from the stack, clobbering only the rsp register. | 534 // from the stack, clobbering only the rsp register. |
| 532 void Drop(int stack_elements); | 535 void Drop(int stack_elements); |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 } \ | 961 } \ |
| 959 masm-> | 962 masm-> |
| 960 #else | 963 #else |
| 961 #define ACCESS_MASM(masm) masm-> | 964 #define ACCESS_MASM(masm) masm-> |
| 962 #endif | 965 #endif |
| 963 | 966 |
| 964 | 967 |
| 965 } } // namespace v8::internal | 968 } } // namespace v8::internal |
| 966 | 969 |
| 967 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 970 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |