OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // ---------------------------------------------------- | 49 // ---------------------------------------------------- |
50 | 50 |
51 class EntryFrameConstants : public AllStatic { | 51 class EntryFrameConstants : public AllStatic { |
52 public: | 52 public: |
53 #ifdef _WIN64 | 53 #ifdef _WIN64 |
54 static const int kCalleeSaveXMMRegisters = 10; | 54 static const int kCalleeSaveXMMRegisters = 10; |
55 static const int kXMMRegisterSize = 16; | 55 static const int kXMMRegisterSize = 16; |
56 static const int kXMMRegistersBlockSize = | 56 static const int kXMMRegistersBlockSize = |
57 kXMMRegisterSize * kCalleeSaveXMMRegisters; | 57 kXMMRegisterSize * kCalleeSaveXMMRegisters; |
58 static const int kCallerFPOffset = | 58 static const int kCallerFPOffset = |
59 -10 * kPointerSize - kXMMRegistersBlockSize; | 59 -3 * kPointerSize + -7 * kRegisterSize - kXMMRegistersBlockSize; |
60 #else | 60 #else |
61 static const int kCallerFPOffset = -8 * kPointerSize; | 61 // We have 3 Push and 5 pushq in the JSEntryStub::GenerateBody. |
| 62 static const int kCallerFPOffset = -3 * kPointerSize + -5 * kRegisterSize; |
62 #endif | 63 #endif |
63 static const int kArgvOffset = 6 * kPointerSize; | 64 static const int kArgvOffset = 6 * kPointerSize; |
64 }; | 65 }; |
65 | 66 |
66 | 67 |
67 class ExitFrameConstants : public AllStatic { | 68 class ExitFrameConstants : public AllStatic { |
68 public: | 69 public: |
69 static const int kFrameSize = 2 * kPointerSize; | 70 static const int kFrameSize = 2 * kPointerSize; |
70 | 71 |
71 static const int kCodeOffset = -2 * kPointerSize; | 72 static const int kCodeOffset = -2 * kPointerSize; |
72 static const int kSPOffset = -1 * kPointerSize; | 73 static const int kSPOffset = -1 * kPointerSize; |
73 | 74 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 133 |
133 | 134 |
134 inline void StackHandler::SetFp(Address slot, Address fp) { | 135 inline void StackHandler::SetFp(Address slot, Address fp) { |
135 Memory::Address_at(slot) = fp; | 136 Memory::Address_at(slot) = fp; |
136 } | 137 } |
137 | 138 |
138 | 139 |
139 } } // namespace v8::internal | 140 } } // namespace v8::internal |
140 | 141 |
141 #endif // V8_X64_FRAMES_X64_H_ | 142 #endif // V8_X64_FRAMES_X64_H_ |
OLD | NEW |