Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ASSEMBLER_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
| 6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 } | 164 } |
| 165 const GrowableObjectArray& object_pool() const { return object_pool_; } | 165 const GrowableObjectArray& object_pool() const { return object_pool_; } |
| 166 void FinalizeInstructions(const MemoryRegion& region) { | 166 void FinalizeInstructions(const MemoryRegion& region) { |
| 167 buffer_.FinalizeInstructions(region); | 167 buffer_.FinalizeInstructions(region); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // Set up a stub frame so that the stack traversal code can easily identify | 170 // Set up a stub frame so that the stack traversal code can easily identify |
| 171 // a stub frame. | 171 // a stub frame. |
| 172 void EnterStubFrame(bool uses_pp = false); | 172 void EnterStubFrame(bool uses_pp = false); |
| 173 void LeaveStubFrame(bool uses_pp = false); | 173 void LeaveStubFrame(bool uses_pp = false); |
| 174 // A separate macro for restoring the SP that we can put in the delay slot | |
| 175 // of jumps that often follow LeaveStubFrame. | |
| 176 void LeaveStubFrameSPRestore(bool uses_pp = false); | |
|
regis
2013/05/01 01:21:46
I think it would be clearer to leave LeaveStubFram
zra
2013/05/01 16:53:17
Done.
| |
| 174 | 177 |
| 175 // Instruction pattern from entrypoint is used in dart frame prologs | 178 // Instruction pattern from entrypoint is used in dart frame prologs |
| 176 // to set up the frame and save a PC which can be used to figure out the | 179 // to set up the frame and save a PC which can be used to figure out the |
| 177 // RawInstruction object corresponding to the code running in the frame. | 180 // RawInstruction object corresponding to the code running in the frame. |
| 178 // See EnterDartFrame. There are 6 instructions before we know the PC. | 181 // See EnterDartFrame. There are 6 instructions before we know the PC. |
| 179 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 6 * Instr::kInstrSize; | 182 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 6 * Instr::kInstrSize; |
| 180 | 183 |
| 181 // Inlined allocation of an instance of class 'cls', code has no runtime | 184 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 182 // calls. Jump to 'failure' if the instance cannot be allocated here. | 185 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 183 // Allocated instance is returned in 'instance_reg'. | 186 // Allocated instance is returned in 'instance_reg'. |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1001 Register value, | 1004 Register value, |
| 1002 Label* no_update); | 1005 Label* no_update); |
| 1003 | 1006 |
| 1004 DISALLOW_ALLOCATION(); | 1007 DISALLOW_ALLOCATION(); |
| 1005 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1008 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1006 }; | 1009 }; |
| 1007 | 1010 |
| 1008 } // namespace dart | 1011 } // namespace dart |
| 1009 | 1012 |
| 1010 #endif // VM_ASSEMBLER_MIPS_H_ | 1013 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |