| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 static const int kCallerFPOffset = 0 * kPointerSize; | 92 static const int kCallerFPOffset = 0 * kPointerSize; |
| 93 static const int kCallerPCOffset = +1 * kPointerSize; | 93 static const int kCallerPCOffset = +1 * kPointerSize; |
| 94 static const int kCallerSPOffset = +2 * kPointerSize; | 94 static const int kCallerSPOffset = +2 * kPointerSize; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 | 97 |
| 98 class JavaScriptFrameConstants : public AllStatic { | 98 class JavaScriptFrameConstants : public AllStatic { |
| 99 public: | 99 public: |
| 100 // FP-relative. | 100 // FP-relative. |
| 101 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; | 101 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; |
| 102 static const int kLastParameterOffset = +2 * kPointerSize; | 102 static const int kSavedRegistersOffset = +2 * kPointerSize; |
| 103 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; | 103 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; |
| 104 | 104 |
| 105 // Caller SP-relative. | 105 // Caller SP-relative. |
| 106 static const int kParam0Offset = -2 * kPointerSize; | 106 static const int kParam0Offset = -2 * kPointerSize; |
| 107 static const int kReceiverOffset = -1 * kPointerSize; | 107 static const int kReceiverOffset = -1 * kPointerSize; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 | 110 |
| 111 class ArgumentsAdaptorFrameConstants : public AllStatic { | 111 class ArgumentsAdaptorFrameConstants : public AllStatic { |
| 112 public: | 112 public: |
| 113 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; | 113 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 | 116 |
| 117 class InternalFrameConstants : public AllStatic { | 117 class InternalFrameConstants : public AllStatic { |
| 118 public: | 118 public: |
| 119 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; | 119 static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 | 122 |
| 123 inline Object* JavaScriptFrame::function_slot_object() const { | 123 inline Object* JavaScriptFrame::function_slot_object() const { |
| 124 const int offset = JavaScriptFrameConstants::kFunctionOffset; | 124 const int offset = JavaScriptFrameConstants::kFunctionOffset; |
| 125 return Memory::Object_at(fp() + offset); | 125 return Memory::Object_at(fp() + offset); |
| 126 } | 126 } |
| 127 | 127 |
| 128 } } // namespace v8::internal | 128 } } // namespace v8::internal |
| 129 | 129 |
| 130 #endif // V8_X64_FRAMES_X64_H_ | 130 #endif // V8_X64_FRAMES_X64_H_ |
| OLD | NEW |