OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2966 // Container object for data collected during simple stack trace captures. | 2966 // Container object for data collected during simple stack trace captures. |
2967 class FrameArray : public FixedArray { | 2967 class FrameArray : public FixedArray { |
2968 public: | 2968 public: |
2969 #define DECLARE_FRAME_ARRAY_ACCESSORS(name, type) \ | 2969 #define DECLARE_FRAME_ARRAY_ACCESSORS(name, type) \ |
2970 inline type* name(int frame_ix) const; \ | 2970 inline type* name(int frame_ix) const; \ |
2971 inline void Set##name(int frame_ix, type* value); | 2971 inline void Set##name(int frame_ix, type* value); |
2972 FRAME_ARRAY_FIELD_LIST(DECLARE_FRAME_ARRAY_ACCESSORS) | 2972 FRAME_ARRAY_FIELD_LIST(DECLARE_FRAME_ARRAY_ACCESSORS) |
2973 #undef DECLARE_FRAME_ARRAY_ACCESSORS | 2973 #undef DECLARE_FRAME_ARRAY_ACCESSORS |
2974 | 2974 |
2975 inline bool IsWasmFrame(int frame_ix) const; | 2975 inline bool IsWasmFrame(int frame_ix) const; |
| 2976 inline bool IsAsmJsWasmFrame(int frame_ix) const; |
2976 inline int FrameCount() const; | 2977 inline int FrameCount() const; |
2977 | 2978 |
2978 void ShrinkToFit(); | 2979 void ShrinkToFit(); |
2979 | 2980 |
2980 // Flags. | 2981 // Flags. |
2981 static const int kIsWasmFrame = 1 << 0; | 2982 static const int kIsWasmFrame = 1 << 0; |
2982 static const int kIsStrict = 1 << 1; | 2983 static const int kIsAsmJsWasmFrame = 1 << 1; |
2983 static const int kForceConstructor = 1 << 2; | 2984 static const int kIsStrict = 1 << 2; |
| 2985 static const int kForceConstructor = 1 << 3; |
2984 | 2986 |
2985 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in, | 2987 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in, |
2986 Handle<Object> receiver, | 2988 Handle<Object> receiver, |
2987 Handle<JSFunction> function, | 2989 Handle<JSFunction> function, |
2988 Handle<AbstractCode> code, int offset, | 2990 Handle<AbstractCode> code, int offset, |
2989 int flags); | 2991 int flags); |
2990 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in, | 2992 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in, |
2991 Handle<Object> wasm_object, | 2993 Handle<Object> wasm_object, |
2992 int wasm_function_index, | 2994 int wasm_function_index, |
2993 Handle<AbstractCode> code, | 2995 Handle<AbstractCode> code, |
(...skipping 8451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11445 } | 11447 } |
11446 return value; | 11448 return value; |
11447 } | 11449 } |
11448 }; | 11450 }; |
11449 | 11451 |
11450 | 11452 |
11451 } // NOLINT, false-positive due to second-order macros. | 11453 } // NOLINT, false-positive due to second-order macros. |
11452 } // NOLINT, false-positive due to second-order macros. | 11454 } // NOLINT, false-positive due to second-order macros. |
11453 | 11455 |
11454 #endif // V8_OBJECTS_H_ | 11456 #endif // V8_OBJECTS_H_ |
OLD | NEW |