| 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_IA32_H_ | 7 #ifndef VM_ASSEMBLER_MACROS_IA32_H_ |
| 8 #define VM_ASSEMBLER_MACROS_IA32_H_ | 8 #define VM_ASSEMBLER_MACROS_IA32_H_ |
| 9 | 9 |
| 10 #ifndef VM_ASSEMBLER_MACROS_H_ | 10 #ifndef VM_ASSEMBLER_MACROS_H_ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // pc (used to derive the RawInstruction Object of the dart code) | 43 // pc (used to derive the RawInstruction Object of the dart code) |
| 44 // locals space <=== ESP | 44 // locals space <=== ESP |
| 45 // ..... | 45 // ..... |
| 46 // This code sets this up with the sequence: | 46 // This code sets this up with the sequence: |
| 47 // pushl ebp | 47 // pushl ebp |
| 48 // movl ebp, esp | 48 // movl ebp, esp |
| 49 // call L | 49 // call L |
| 50 // L: <code to adjust saved pc if there is any intrinsification code> | 50 // L: <code to adjust saved pc if there is any intrinsification code> |
| 51 // ..... | 51 // ..... |
| 52 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); | 52 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); |
| 53 // Populates pc local slot lazily. | |
| 54 static void EnterDartLeafFrame(Assembler* assembler, intptr_t frame_size); | |
| 55 | 53 |
| 56 // Set up a stub frame so that the stack traversal code can easily identify | 54 // Set up a stub frame so that the stack traversal code can easily identify |
| 57 // a stub frame. | 55 // a stub frame. |
| 58 // The stub frame layout is as follows: | 56 // The stub frame layout is as follows: |
| 59 // .... | 57 // .... |
| 60 // ret PC | 58 // ret PC |
| 61 // saved EBP | 59 // saved EBP |
| 62 // 0 (used to indicate frame is a stub frame) | 60 // 0 (used to indicate frame is a stub frame) |
| 63 // ..... | 61 // ..... |
| 64 // This code sets this up with the sequence: | 62 // This code sets this up with the sequence: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 75 // pushl ebp (size is 1 byte) | 73 // pushl ebp (size is 1 byte) |
| 76 // movl ebp, esp (size is 2 bytes) | 74 // movl ebp, esp (size is 2 bytes) |
| 77 // call L (size is 5 bytes) | 75 // call L (size is 5 bytes) |
| 78 // L: | 76 // L: |
| 79 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 8; | 77 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 8; |
| 80 }; | 78 }; |
| 81 | 79 |
| 82 } // namespace dart. | 80 } // namespace dart. |
| 83 | 81 |
| 84 #endif // VM_ASSEMBLER_MACROS_IA32_H_ | 82 #endif // VM_ASSEMBLER_MACROS_IA32_H_ |
| OLD | NEW |