| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Sets the remembered set bit for [address+offset], where address is the | 92 // Sets the remembered set bit for [address+offset], where address is the |
| 93 // address of the heap object 'object'. The address must be in the first 8K | 93 // address of the heap object 'object'. The address must be in the first 8K |
| 94 // of an allocated page. The 'scratch' register is used in the | 94 // of an allocated page. The 'scratch' register is used in the |
| 95 // implementation and all 3 registers are clobbered by the operation, as | 95 // implementation and all 3 registers are clobbered by the operation, as |
| 96 // well as the ip register. | 96 // well as the ip register. |
| 97 void RecordWrite(Register object, Register offset, Register scratch); | 97 void RecordWrite(Register object, Register offset, Register scratch); |
| 98 | 98 |
| 99 // --------------------------------------------------------------------------- | 99 // --------------------------------------------------------------------------- |
| 100 // Activation frames | 100 // Activation frames |
| 101 | 101 |
| 102 void EnterInternalFrame(); | 102 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } |
| 103 void LeaveInternalFrame(); | 103 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } |
| 104 |
| 105 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } |
| 106 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } |
| 104 | 107 |
| 105 // Enter specific kind of exit frame; either EXIT or | 108 // Enter specific kind of exit frame; either EXIT or |
| 106 // EXIT_DEBUG. Expects the number of arguments in register r0 and | 109 // EXIT_DEBUG. Expects the number of arguments in register r0 and |
| 107 // the builtin function to call in register r1. Exits with argc in | 110 // the builtin function to call in register r1. Exits with argc in |
| 108 // r4, argv in r6, and and the builtin function to call in r5. | 111 // r4, argv in r6, and and the builtin function to call in r5. |
| 109 void EnterExitFrame(StackFrame::Type type); | 112 void EnterExitFrame(StackFrame::Type type); |
| 110 | 113 |
| 111 // Leave the current exit frame. Expects the return value in r0. | 114 // Leave the current exit frame. Expects the return value in r0. |
| 112 void LeaveExitFrame(StackFrame::Type type); | 115 void LeaveExitFrame(StackFrame::Type type); |
| 113 | 116 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 void InvokePrologue(const ParameterCount& expected, | 256 void InvokePrologue(const ParameterCount& expected, |
| 254 const ParameterCount& actual, | 257 const ParameterCount& actual, |
| 255 Handle<Code> code_constant, | 258 Handle<Code> code_constant, |
| 256 Register code_reg, | 259 Register code_reg, |
| 257 Label* done, | 260 Label* done, |
| 258 InvokeFlag flag); | 261 InvokeFlag flag); |
| 259 | 262 |
| 260 // Get the code for the given builtin. Returns if able to resolve | 263 // Get the code for the given builtin. Returns if able to resolve |
| 261 // the function in the 'resolved' flag. | 264 // the function in the 'resolved' flag. |
| 262 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); | 265 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); |
| 266 |
| 267 // Activation support. |
| 268 void EnterFrame(StackFrame::Type type); |
| 269 void LeaveFrame(StackFrame::Type type); |
| 263 }; | 270 }; |
| 264 | 271 |
| 265 | 272 |
| 266 // ----------------------------------------------------------------------------- | 273 // ----------------------------------------------------------------------------- |
| 267 // Static helper functions. | 274 // Static helper functions. |
| 268 | 275 |
| 269 // Generate a MemOperand for loading a field from an object. | 276 // Generate a MemOperand for loading a field from an object. |
| 270 static inline MemOperand FieldMemOperand(Register object, int offset) { | 277 static inline MemOperand FieldMemOperand(Register object, int offset) { |
| 271 return MemOperand(object, offset - kHeapObjectTag); | 278 return MemOperand(object, offset - kHeapObjectTag); |
| 272 } | 279 } |
| 273 | 280 |
| 274 | 281 |
| 275 | 282 |
| 276 } } // namespace v8::internal | 283 } } // namespace v8::internal |
| 277 | 284 |
| 278 #endif // V8_MACRO_ASSEMBLER_ARM_H_ | 285 #endif // V8_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |