Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.h

Issue 2404253002: [wasm] Provide better stack traces for asm.js code (Closed)
Patch Set: Pass encoded bytes directly instead of embedding them in the module Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int FrameCount() const; 2976 inline int FrameCount() const;
2977 2977
2978 void ShrinkToFit(); 2978 void ShrinkToFit();
2979 2979
2980 // Flags. 2980 // Flags.
2981 static const int kIsWasmFrame = 1 << 0; 2981 static const int kIsWasmFrame = 1 << 0;
2982 static const int kIsStrict = 1 << 1; 2982 static const int kIsAsmWasmFrame = 1 << 1;
2983 static const int kForceConstructor = 1 << 2; 2983 static const int kIsStrict = 1 << 2;
2984 static const int kForceConstructor = 1 << 3;
2984 2985
2985 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in, 2986 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in,
2986 Handle<Object> receiver, 2987 Handle<Object> receiver,
2987 Handle<JSFunction> function, 2988 Handle<JSFunction> function,
2988 Handle<AbstractCode> code, int offset, 2989 Handle<AbstractCode> code, int offset,
2989 int flags); 2990 int flags);
2990 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in, 2991 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in,
2991 Handle<Object> wasm_object, 2992 Handle<Object> wasm_object,
2992 int wasm_function_index, 2993 int wasm_function_index,
2993 Handle<AbstractCode> code, 2994 Handle<AbstractCode> code,
(...skipping 8456 matching lines...) Expand 10 before | Expand all | Expand 10 after
11450 } 11451 }
11451 return value; 11452 return value;
11452 } 11453 }
11453 }; 11454 };
11454 11455
11455 11456
11456 } // NOLINT, false-positive due to second-order macros. 11457 } // NOLINT, false-positive due to second-order macros.
11457 } // NOLINT, false-positive due to second-order macros. 11458 } // NOLINT, false-positive due to second-order macros.
11458 11459
11459 #endif // V8_OBJECTS_H_ 11460 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698