| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ScaleFactor scale; | 49 ScaleFactor scale; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 // MacroAssembler implements a collection of frequently used macros. | 52 // MacroAssembler implements a collection of frequently used macros. |
| 53 class MacroAssembler: public Assembler { | 53 class MacroAssembler: public Assembler { |
| 54 public: | 54 public: |
| 55 MacroAssembler(void* buffer, int size); | 55 MacroAssembler(void* buffer, int size); |
| 56 | 56 |
| 57 void LoadRoot(Register destination, Heap::RootListIndex index); | 57 void LoadRoot(Register destination, Heap::RootListIndex index); |
| 58 void CompareRoot(Register with, Heap::RootListIndex index); | 58 void CompareRoot(Register with, Heap::RootListIndex index); |
| 59 void CompareRoot(Operand with, Heap::RootListIndex index); |
| 59 void PushRoot(Heap::RootListIndex index); | 60 void PushRoot(Heap::RootListIndex index); |
| 60 | 61 |
| 61 // --------------------------------------------------------------------------- | 62 // --------------------------------------------------------------------------- |
| 62 // GC Support | 63 // GC Support |
| 63 | 64 |
| 64 // Set the remembered set bit for [object+offset]. | 65 // Set the remembered set bit for [object+offset]. |
| 65 // object is the object being stored into, value is the object being stored. | 66 // object is the object being stored into, value is the object being stored. |
| 66 // If offset is zero, then the scratch register contains the array index into | 67 // If offset is zero, then the scratch register contains the array index into |
| 67 // the elements array represented as a Smi. | 68 // the elements array represented as a Smi. |
| 68 // All registers are clobbered by the operation. | 69 // All registers are clobbered by the operation. |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 } \ | 685 } \ |
| 685 masm-> | 686 masm-> |
| 686 #else | 687 #else |
| 687 #define ACCESS_MASM(masm) masm-> | 688 #define ACCESS_MASM(masm) masm-> |
| 688 #endif | 689 #endif |
| 689 | 690 |
| 690 | 691 |
| 691 } } // namespace v8::internal | 692 } } // namespace v8::internal |
| 692 | 693 |
| 693 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 694 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |