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

Side by Side Diff: src/objects.h

Issue 2428343005: [wasm] Improve naming consistency for WASM instances. (Closed)
Patch Set: 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 3126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3137 static const int kIsAsmJsWasmFrame = 1 << 1; 3137 static const int kIsAsmJsWasmFrame = 1 << 1;
3138 static const int kIsStrict = 1 << 2; 3138 static const int kIsStrict = 1 << 2;
3139 static const int kForceConstructor = 1 << 3; 3139 static const int kForceConstructor = 1 << 3;
3140 3140
3141 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in, 3141 static Handle<FrameArray> AppendJSFrame(Handle<FrameArray> in,
3142 Handle<Object> receiver, 3142 Handle<Object> receiver,
3143 Handle<JSFunction> function, 3143 Handle<JSFunction> function,
3144 Handle<AbstractCode> code, int offset, 3144 Handle<AbstractCode> code, int offset,
3145 int flags); 3145 int flags);
3146 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in, 3146 static Handle<FrameArray> AppendWasmFrame(Handle<FrameArray> in,
3147 Handle<Object> wasm_object, 3147 Handle<Object> wasm_instance,
3148 int wasm_function_index, 3148 int wasm_function_index,
3149 Handle<AbstractCode> code, 3149 Handle<AbstractCode> code,
3150 int offset, int flags); 3150 int offset, int flags);
3151 3151
3152 DECLARE_CAST(FrameArray) 3152 DECLARE_CAST(FrameArray)
3153 3153
3154 private: 3154 private:
3155 // The underlying fixed array embodies a captured stack trace. Frame i 3155 // The underlying fixed array embodies a captured stack trace. Frame i
3156 // occupies indices 3156 // occupies indices
3157 // 3157 //
(...skipping 3927 matching lines...) Expand 10 before | Expand all | Expand 10 after
7085 7085
7086 // [flags]: Holds an exciting bitfield. 7086 // [flags]: Holds an exciting bitfield.
7087 DECL_INT_ACCESSORS(flags) 7087 DECL_INT_ACCESSORS(flags)
7088 7088
7089 // [source_url]: sourceURL from magic comment 7089 // [source_url]: sourceURL from magic comment
7090 DECL_ACCESSORS(source_url, Object) 7090 DECL_ACCESSORS(source_url, Object)
7091 7091
7092 // [source_mapping_url]: sourceMappingURL magic comment 7092 // [source_mapping_url]: sourceMappingURL magic comment
7093 DECL_ACCESSORS(source_mapping_url, Object) 7093 DECL_ACCESSORS(source_mapping_url, Object)
7094 7094
7095 // [wasm_object]: the wasm object this script belongs to. 7095 // [wasm_instance]: the wasm instance this script belongs to.
7096 // This must only be called if the type of this script is TYPE_WASM. 7096 // This must only be called if the type of this script is TYPE_WASM.
7097 DECL_ACCESSORS(wasm_object, JSObject) 7097 DECL_ACCESSORS(wasm_instance, JSObject)
7098 7098
7099 // [wasm_function_index]: the wasm function index this script belongs to. 7099 // [wasm_function_index]: the wasm function index this script belongs to.
7100 // This must only be called if the type of this script is TYPE_WASM. 7100 // This must only be called if the type of this script is TYPE_WASM.
7101 DECL_INT_ACCESSORS(wasm_function_index) 7101 DECL_INT_ACCESSORS(wasm_function_index)
7102 7102
7103 // [compilation_type]: how the the script was compiled. Encoded in the 7103 // [compilation_type]: how the the script was compiled. Encoded in the
7104 // 'flags' field. 7104 // 'flags' field.
7105 inline CompilationType compilation_type(); 7105 inline CompilationType compilation_type();
7106 inline void set_compilation_type(CompilationType type); 7106 inline void set_compilation_type(CompilationType type);
7107 7107
(...skipping 4622 matching lines...) Expand 10 before | Expand all | Expand 10 after
11730 } 11730 }
11731 return value; 11731 return value;
11732 } 11732 }
11733 }; 11733 };
11734 11734
11735 11735
11736 } // NOLINT, false-positive due to second-order macros. 11736 } // NOLINT, false-positive due to second-order macros.
11737 } // NOLINT, false-positive due to second-order macros. 11737 } // NOLINT, false-positive due to second-order macros.
11738 11738
11739 #endif // V8_OBJECTS_H_ 11739 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698