| OLD | NEW | 
|    1 // Copyright 2012 the V8 project authors. All rights reserved. |    1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #ifndef V8_X64_FRAMES_X64_H_ |    5 #ifndef V8_X64_FRAMES_X64_H_ | 
|    6 #define V8_X64_FRAMES_X64_H_ |    6 #define V8_X64_FRAMES_X64_H_ | 
|    7  |    7  | 
|    8 namespace v8 { |    8 namespace v8 { | 
|    9 namespace internal { |    9 namespace internal { | 
|   10  |   10  | 
|   11 const int kNumRegs = 16; |   11 const int kNumRegs = 16; | 
|   12 const RegList kJSCallerSaved = |   12 const RegList kJSCallerSaved = | 
|   13     1 << 0 |  // rax |   13     1 << 0 |  // rax | 
|   14     1 << 1 |  // rcx |   14     1 << 1 |  // rcx | 
|   15     1 << 2 |  // rdx |   15     1 << 2 |  // rdx | 
|   16     1 << 3 |  // rbx - used as a caller-saved register in JavaScript code |   16     1 << 3 |  // rbx - used as a caller-saved register in JavaScript code | 
|   17     1 << 7;   // rdi - callee function |   17     1 << 7;   // rdi - callee function | 
|   18  |   18  | 
|   19 const int kNumJSCallerSaved = 5; |   19 const int kNumJSCallerSaved = 5; | 
|   20  |   20  | 
|   21 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; |  | 
|   22  |  | 
|   23 // Number of registers for which space is reserved in safepoints. |   21 // Number of registers for which space is reserved in safepoints. | 
|   24 const int kNumSafepointRegisters = 16; |   22 const int kNumSafepointRegisters = 16; | 
|   25  |   23  | 
|   26 // ---------------------------------------------------- |   24 // ---------------------------------------------------- | 
|   27  |   25  | 
|   28 class EntryFrameConstants : public AllStatic { |   26 class EntryFrameConstants : public AllStatic { | 
|   29  public: |   27  public: | 
|   30 #ifdef _WIN64 |   28 #ifdef _WIN64 | 
|   31   static const int kCalleeSaveXMMRegisters = 10; |   29   static const int kCalleeSaveXMMRegisters = 10; | 
|   32   static const int kXMMRegisterSize = 16; |   30   static const int kXMMRegisterSize = 16; | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  114     // Zero out the high-32 bit of FP for x32 port. |  112     // Zero out the high-32 bit of FP for x32 port. | 
|  115     Memory::Address_at(slot + kPointerSize) = 0; |  113     Memory::Address_at(slot + kPointerSize) = 0; | 
|  116   } |  114   } | 
|  117   Memory::Address_at(slot) = fp; |  115   Memory::Address_at(slot) = fp; | 
|  118 } |  116 } | 
|  119  |  117  | 
|  120  |  118  | 
|  121 } }  // namespace v8::internal |  119 } }  // namespace v8::internal | 
|  122  |  120  | 
|  123 #endif  // V8_X64_FRAMES_X64_H_ |  121 #endif  // V8_X64_FRAMES_X64_H_ | 
| OLD | NEW |