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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // MacroAssembler implements a collection of frequently used macros. | 55 // MacroAssembler implements a collection of frequently used macros. |
56 class MacroAssembler: public Assembler { | 56 class MacroAssembler: public Assembler { |
57 public: | 57 public: |
58 // The isolate parameter can be NULL if the macro assembler should | 58 // The isolate parameter can be NULL if the macro assembler should |
59 // not use isolate-dependent functionality. In this case, it's the | 59 // not use isolate-dependent functionality. In this case, it's the |
60 // responsibility of the caller to never invoke such function on the | 60 // responsibility of the caller to never invoke such function on the |
61 // macro assembler. | 61 // macro assembler. |
62 MacroAssembler(Isolate* isolate, void* buffer, int size); | 62 MacroAssembler(Isolate* isolate, void* buffer, int size); |
63 | 63 |
64 void Load(Register dst, const Operand& src, Representation r); | |
65 void Store(Register src, const Operand& dst, Representation r); | |
66 | |
67 // Operations on roots in the root-array. | 64 // Operations on roots in the root-array. |
68 void LoadRoot(Register destination, Heap::RootListIndex index); | 65 void LoadRoot(Register destination, Heap::RootListIndex index); |
69 void StoreRoot(Register source, Register scratch, Heap::RootListIndex index); | 66 void StoreRoot(Register source, Register scratch, Heap::RootListIndex index); |
70 void CompareRoot(Register with, Register scratch, Heap::RootListIndex index); | 67 void CompareRoot(Register with, Register scratch, Heap::RootListIndex index); |
71 // These methods can only be used with constant roots (i.e. non-writable | 68 // These methods can only be used with constant roots (i.e. non-writable |
72 // and not in new space). | 69 // and not in new space). |
73 void CompareRoot(Register with, Heap::RootListIndex index); | 70 void CompareRoot(Register with, Heap::RootListIndex index); |
74 void CompareRoot(const Operand& with, Heap::RootListIndex index); | 71 void CompareRoot(const Operand& with, Heap::RootListIndex index); |
75 | 72 |
76 // --------------------------------------------------------------------------- | 73 // --------------------------------------------------------------------------- |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 } \ | 1113 } \ |
1117 masm-> | 1114 masm-> |
1118 #else | 1115 #else |
1119 #define ACCESS_MASM(masm) masm-> | 1116 #define ACCESS_MASM(masm) masm-> |
1120 #endif | 1117 #endif |
1121 | 1118 |
1122 | 1119 |
1123 } } // namespace v8::internal | 1120 } } // namespace v8::internal |
1124 | 1121 |
1125 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1122 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |