OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Set the remembered set bit for [object+offset]. | 66 // Set the remembered set bit for [object+offset]. |
67 // object is the object being stored into, value is the object being stored. | 67 // object is the object being stored into, value is the object being stored. |
68 // If offset is zero, then the scratch register contains the array index into | 68 // If offset is zero, then the scratch register contains the array index into |
69 // the elements array represented as a Smi. | 69 // the elements array represented as a Smi. |
70 // All registers are clobbered by the operation. | 70 // All registers are clobbered by the operation. |
71 void RecordWrite(Register object, | 71 void RecordWrite(Register object, |
72 int offset, | 72 int offset, |
73 Register value, | 73 Register value, |
74 Register scratch); | 74 Register scratch); |
75 | 75 |
76 | 76 #ifdef ENABLE_DEBUGGER_SUPPORT |
77 // --------------------------------------------------------------------------- | 77 // --------------------------------------------------------------------------- |
78 // Debugger Support | 78 // Debugger Support |
79 | 79 |
80 void SaveRegistersToMemory(RegList regs); | 80 void SaveRegistersToMemory(RegList regs); |
81 void RestoreRegistersFromMemory(RegList regs); | 81 void RestoreRegistersFromMemory(RegList regs); |
82 void PushRegistersFromMemory(RegList regs); | 82 void PushRegistersFromMemory(RegList regs); |
83 void PopRegistersToMemory(RegList regs); | 83 void PopRegistersToMemory(RegList regs); |
84 void CopyRegistersFromStackToMemory(Register base, | 84 void CopyRegistersFromStackToMemory(Register base, |
85 Register scratch, | 85 Register scratch, |
86 RegList regs); | 86 RegList regs); |
87 | 87 #endif |
88 | 88 |
89 // --------------------------------------------------------------------------- | 89 // --------------------------------------------------------------------------- |
90 // Activation frames | 90 // Activation frames |
91 | 91 |
92 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } | 92 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } |
93 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } | 93 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } |
94 | 94 |
95 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } | 95 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } |
96 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } | 96 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } |
97 | 97 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 static inline Operand FieldOperand(Register object, | 339 static inline Operand FieldOperand(Register object, |
340 Register index, | 340 Register index, |
341 ScaleFactor scale, | 341 ScaleFactor scale, |
342 int offset) { | 342 int offset) { |
343 return Operand(object, index, scale, offset - kHeapObjectTag); | 343 return Operand(object, index, scale, offset - kHeapObjectTag); |
344 } | 344 } |
345 | 345 |
346 } } // namespace v8::internal | 346 } } // namespace v8::internal |
347 | 347 |
348 #endif // V8_MACRO_ASSEMBLER_IA32_H_ | 348 #endif // V8_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |