| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // The class 'AssemblerMacros' contains assembler instruction groups that | 4 // The class 'AssemblerMacros' contains assembler instruction groups that |
| 5 // are used in Dart. | 5 // are used in Dart. |
| 6 | 6 |
| 7 #ifndef VM_ASSEMBLER_MACROS_X64_H_ | 7 #ifndef VM_ASSEMBLER_MACROS_X64_H_ |
| 8 #define VM_ASSEMBLER_MACROS_X64_H_ | 8 #define VM_ASSEMBLER_MACROS_X64_H_ |
| 9 | 9 |
| 10 #ifndef VM_ASSEMBLER_MACROS_H_ | 10 #ifndef VM_ASSEMBLER_MACROS_H_ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // pc (used to derive the RawInstruction Object of the dart code) | 42 // pc (used to derive the RawInstruction Object of the dart code) |
| 43 // locals space <=== RSP | 43 // locals space <=== RSP |
| 44 // ..... | 44 // ..... |
| 45 // This code sets this up with the sequence: | 45 // This code sets this up with the sequence: |
| 46 // pushq rbp | 46 // pushq rbp |
| 47 // movq rbp, rsp | 47 // movq rbp, rsp |
| 48 // call L | 48 // call L |
| 49 // L: <code to adjust saved pc if there is any intrinsification code> | 49 // L: <code to adjust saved pc if there is any intrinsification code> |
| 50 // ..... | 50 // ..... |
| 51 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); | 51 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); |
| 52 // Populates pc local slot lazily. |
| 53 static void EnterDartLeafFrame(Assembler* assembler, intptr_t frame_size); |
| 52 | 54 |
| 53 // Set up a stub frame so that the stack traversal code can easily identify | 55 // Set up a stub frame so that the stack traversal code can easily identify |
| 54 // a stub frame. | 56 // a stub frame. |
| 55 // The stub frame layout is as follows: | 57 // The stub frame layout is as follows: |
| 56 // .... | 58 // .... |
| 57 // ret PC | 59 // ret PC |
| 58 // saved RBP | 60 // saved RBP |
| 59 // pc (used to derive the RawInstruction Object of the stub) | 61 // pc (used to derive the RawInstruction Object of the stub) |
| 60 // ..... | 62 // ..... |
| 61 // This code sets this up with the sequence: | 63 // This code sets this up with the sequence: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 72 // pushq rbp (size is 1 byte) | 74 // pushq rbp (size is 1 byte) |
| 73 // movq rbp, rsp (size is 3 bytes) | 75 // movq rbp, rsp (size is 3 bytes) |
| 74 // call L (size is 5 bytes) | 76 // call L (size is 5 bytes) |
| 75 // L: | 77 // L: |
| 76 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 9; | 78 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 9; |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace dart. | 81 } // namespace dart. |
| 80 | 82 |
| 81 #endif // VM_ASSEMBLER_MACROS_X64_H_ | 83 #endif // VM_ASSEMBLER_MACROS_X64_H_ |
| OLD | NEW |