| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 30 matching lines...) Expand all Loading... |
| 41 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; | 41 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; |
| 42 | 42 |
| 43 // Number of registers for which space is reserved in safepoints. Must be a | 43 // Number of registers for which space is reserved in safepoints. Must be a |
| 44 // multiple of eight. | 44 // multiple of eight. |
| 45 // TODO(all): Refine this number. | 45 // TODO(all): Refine this number. |
| 46 const int kNumSafepointRegisters = 32; | 46 const int kNumSafepointRegisters = 32; |
| 47 | 47 |
| 48 // Define the list of registers actually saved at safepoints. | 48 // Define the list of registers actually saved at safepoints. |
| 49 // Note that the number of saved registers may be smaller than the reserved | 49 // Note that the number of saved registers may be smaller than the reserved |
| 50 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. | 50 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters. |
| 51 const RegList kSafepointSavedRegisters = | 51 #define kSafepointSavedRegisters CPURegList::GetSafepointSavedRegisters().list() |
| 52 CPURegList::GetSafepointSavedRegisters().list(); | 52 #define kNumSafepointSavedRegisters \ |
| 53 const int kNumSafepointSavedRegisters = | 53 CPURegList::GetSafepointSavedRegisters().Count(); |
| 54 CPURegList::GetSafepointSavedRegisters().Count(); | |
| 55 | 54 |
| 56 class EntryFrameConstants : public AllStatic { | 55 class EntryFrameConstants : public AllStatic { |
| 57 public: | 56 public: |
| 58 static const int kCallerFPOffset = -3 * kPointerSize; | 57 static const int kCallerFPOffset = -3 * kPointerSize; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 | 60 |
| 62 class ExitFrameConstants : public AllStatic { | 61 class ExitFrameConstants : public AllStatic { |
| 63 public: | 62 public: |
| 64 static const int kCallerSPDisplacement = 2 * kPointerSize; | 63 static const int kCallerSPDisplacement = 2 * kPointerSize; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 119 |
| 121 | 120 |
| 122 inline void StackHandler::SetFp(Address slot, Address fp) { | 121 inline void StackHandler::SetFp(Address slot, Address fp) { |
| 123 Memory::Address_at(slot) = fp; | 122 Memory::Address_at(slot) = fp; |
| 124 } | 123 } |
| 125 | 124 |
| 126 | 125 |
| 127 } } // namespace v8::internal | 126 } } // namespace v8::internal |
| 128 | 127 |
| 129 #endif // V8_A64_FRAMES_A64_H_ | 128 #endif // V8_A64_FRAMES_A64_H_ |
| OLD | NEW |