| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 1 << 0 | // eax | 44 1 << 0 | // eax |
| 45 1 << 1 | // ecx | 45 1 << 1 | // ecx |
| 46 1 << 2 | // edx | 46 1 << 2 | // edx |
| 47 1 << 3 | // ebx - used as a caller-saved register in JavaScript code | 47 1 << 3 | // ebx - used as a caller-saved register in JavaScript code |
| 48 1 << 7; // edi - callee function | 48 1 << 7; // edi - callee function |
| 49 | 49 |
| 50 static const int kNumJSCallerSaved = 5; | 50 static const int kNumJSCallerSaved = 5; |
| 51 | 51 |
| 52 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; | 52 typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved]; |
| 53 | 53 |
| 54 |
| 55 // Number of registers for which space is reserved in safepoints. |
| 56 static const int kNumSafepointRegisters = 8; |
| 57 |
| 54 // ---------------------------------------------------- | 58 // ---------------------------------------------------- |
| 55 | 59 |
| 56 | 60 |
| 57 class StackHandlerConstants : public AllStatic { | 61 class StackHandlerConstants : public AllStatic { |
| 58 public: | 62 public: |
| 59 static const int kNextOffset = 0 * kPointerSize; | 63 static const int kNextOffset = 0 * kPointerSize; |
| 60 static const int kFPOffset = 1 * kPointerSize; | 64 static const int kFPOffset = 1 * kPointerSize; |
| 61 static const int kStateOffset = 2 * kPointerSize; | 65 static const int kStateOffset = 2 * kPointerSize; |
| 62 static const int kPCOffset = 3 * kPointerSize; | 66 static const int kPCOffset = 3 * kPointerSize; |
| 63 | 67 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 85 static const int kCallerPCOffset = +1 * kPointerSize; | 89 static const int kCallerPCOffset = +1 * kPointerSize; |
| 86 | 90 |
| 87 // FP-relative displacement of the caller's SP. It points just | 91 // FP-relative displacement of the caller's SP. It points just |
| 88 // below the saved PC. | 92 // below the saved PC. |
| 89 static const int kCallerSPDisplacement = +2 * kPointerSize; | 93 static const int kCallerSPDisplacement = +2 * kPointerSize; |
| 90 }; | 94 }; |
| 91 | 95 |
| 92 | 96 |
| 93 class StandardFrameConstants : public AllStatic { | 97 class StandardFrameConstants : public AllStatic { |
| 94 public: | 98 public: |
| 99 static const int kFixedFrameSize = 4; |
| 95 static const int kExpressionsOffset = -3 * kPointerSize; | 100 static const int kExpressionsOffset = -3 * kPointerSize; |
| 96 static const int kMarkerOffset = -2 * kPointerSize; | 101 static const int kMarkerOffset = -2 * kPointerSize; |
| 97 static const int kContextOffset = -1 * kPointerSize; | 102 static const int kContextOffset = -1 * kPointerSize; |
| 98 static const int kCallerFPOffset = 0 * kPointerSize; | 103 static const int kCallerFPOffset = 0 * kPointerSize; |
| 99 static const int kCallerPCOffset = +1 * kPointerSize; | 104 static const int kCallerPCOffset = +1 * kPointerSize; |
| 100 static const int kCallerSPOffset = +2 * kPointerSize; | 105 static const int kCallerSPOffset = +2 * kPointerSize; |
| 101 }; | 106 }; |
| 102 | 107 |
| 103 | 108 |
| 104 class JavaScriptFrameConstants : public AllStatic { | 109 class JavaScriptFrameConstants : public AllStatic { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 128 | 133 |
| 129 inline Object* JavaScriptFrame::function_slot_object() const { | 134 inline Object* JavaScriptFrame::function_slot_object() const { |
| 130 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 135 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 131 return Memory::Object_at(fp() + offset); | 136 return Memory::Object_at(fp() + offset); |
| 132 } | 137 } |
| 133 | 138 |
| 134 | 139 |
| 135 } } // namespace v8::internal | 140 } } // namespace v8::internal |
| 136 | 141 |
| 137 #endif // V8_IA32_FRAMES_IA32_H_ | 142 #endif // V8_IA32_FRAMES_IA32_H_ |
| OLD | NEW |