| 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_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
| 6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache); | 65 DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 | 68 |
| 69 class StackHandlerConstants : public AllStatic { | 69 class StackHandlerConstants : public AllStatic { |
| 70 public: | 70 public: |
| 71 static const int kNextOffset = 0 * kPointerSize; | 71 static const int kNextOffset = 0 * kPointerSize; |
| 72 static const int kCodeOffset = 1 * kPointerSize; | 72 static const int kCodeOffset = 1 * kPointerSize; |
| 73 static const int kStateOffset = 2 * kPointerSize; | 73 static const int kStateOffset = 2 * kPointerSize; |
| 74 #if V8_TARGET_LITTLE_ENDIAN || !V8_HOST_ARCH_64_BIT |
| 75 static const int kStateIntOffset = kStateOffset; |
| 76 #else |
| 77 static const int kStateIntOffset = kStateOffset + kIntSize; |
| 78 #endif |
| 74 static const int kContextOffset = 3 * kPointerSize; | 79 static const int kContextOffset = 3 * kPointerSize; |
| 75 static const int kFPOffset = 4 * kPointerSize; | 80 static const int kFPOffset = 4 * kPointerSize; |
| 76 | 81 |
| 77 static const int kSize = kFPOffset + kFPOnStackSize; | 82 static const int kSize = kFPOffset + kFPOnStackSize; |
| 78 static const int kSlotCount = kSize >> kPointerSizeLog2; | 83 static const int kSlotCount = kSize >> kPointerSizeLog2; |
| 79 }; | 84 }; |
| 80 | 85 |
| 81 | 86 |
| 82 class StackHandler BASE_EMBEDDED { | 87 class StackHandler BASE_EMBEDDED { |
| 83 public: | 88 public: |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 }; | 937 }; |
| 933 | 938 |
| 934 | 939 |
| 935 // Reads all frames on the current stack and copies them into the current | 940 // Reads all frames on the current stack and copies them into the current |
| 936 // zone memory. | 941 // zone memory. |
| 937 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 942 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 938 | 943 |
| 939 } } // namespace v8::internal | 944 } } // namespace v8::internal |
| 940 | 945 |
| 941 #endif // V8_FRAMES_H_ | 946 #endif // V8_FRAMES_H_ |
| OLD | NEW |