| 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_X87_FRAMES_X87_H_ | 5 #ifndef V8_X87_FRAMES_X87_H_ | 
| 6 #define V8_X87_FRAMES_X87_H_ | 6 #define V8_X87_FRAMES_X87_H_ | 
| 7 | 7 | 
| 8 namespace v8 { | 8 namespace v8 { | 
| 9 namespace internal { | 9 namespace internal { | 
| 10 | 10 | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21   1 << 2 |  // edx | 21   1 << 2 |  // edx | 
| 22   1 << 3 |  // ebx - used as a caller-saved register in JavaScript code | 22   1 << 3 |  // ebx - used as a caller-saved register in JavaScript code | 
| 23   1 << 7;   // edi - callee function | 23   1 << 7;   // edi - callee function | 
| 24 | 24 | 
| 25 const int kNumJSCallerSaved = 5; | 25 const int kNumJSCallerSaved = 5; | 
| 26 | 26 | 
| 27 | 27 | 
| 28 // Number of registers for which space is reserved in safepoints. | 28 // Number of registers for which space is reserved in safepoints. | 
| 29 const int kNumSafepointRegisters = 8; | 29 const int kNumSafepointRegisters = 8; | 
| 30 | 30 | 
| 31 const int kNoAlignmentPadding = 0; |  | 
| 32 const int kAlignmentPaddingPushed = 2; |  | 
| 33 const int kAlignmentZapValue = 0x12345678;  // Not heap object tagged. |  | 
| 34 |  | 
| 35 // ---------------------------------------------------- | 31 // ---------------------------------------------------- | 
| 36 | 32 | 
| 37 | 33 | 
| 38 class EntryFrameConstants : public AllStatic { | 34 class EntryFrameConstants : public AllStatic { | 
| 39  public: | 35  public: | 
| 40   static const int kCallerFPOffset      = -6 * kPointerSize; | 36   static const int kCallerFPOffset      = -6 * kPointerSize; | 
| 41 | 37 | 
| 42   static const int kNewTargetArgOffset = +2 * kPointerSize; | 38   static const int kNewTargetArgOffset = +2 * kPointerSize; | 
| 43   static const int kFunctionArgOffset   = +3 * kPointerSize; | 39   static const int kFunctionArgOffset   = +3 * kPointerSize; | 
| 44   static const int kReceiverArgOffset   = +4 * kPointerSize; | 40   static const int kReceiverArgOffset   = +4 * kPointerSize; | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 68 class JavaScriptFrameConstants : public AllStatic { | 64 class JavaScriptFrameConstants : public AllStatic { | 
| 69  public: | 65  public: | 
| 70   // FP-relative. | 66   // FP-relative. | 
| 71   static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 67   static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 
| 72   static const int kLastParameterOffset = +2 * kPointerSize; | 68   static const int kLastParameterOffset = +2 * kPointerSize; | 
| 73   static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 69   static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 
| 74 | 70 | 
| 75   // Caller SP-relative. | 71   // Caller SP-relative. | 
| 76   static const int kParam0Offset   = -2 * kPointerSize; | 72   static const int kParam0Offset   = -2 * kPointerSize; | 
| 77   static const int kReceiverOffset = -1 * kPointerSize; | 73   static const int kReceiverOffset = -1 * kPointerSize; | 
| 78 |  | 
| 79   static const int kDynamicAlignmentStateOffset = kLocal0Offset; |  | 
| 80 }; | 74 }; | 
| 81 | 75 | 
| 82 | 76 | 
| 83 }  // namespace internal | 77 }  // namespace internal | 
| 84 }  // namespace v8 | 78 }  // namespace v8 | 
| 85 | 79 | 
| 86 #endif  // V8_X87_FRAMES_X87_H_ | 80 #endif  // V8_X87_FRAMES_X87_H_ | 
| OLD | NEW | 
|---|