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

Side by Side Diff: src/messages.h

Issue 2493823003: [wasm] Allocate a single script per wasm module (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | src/messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool IsConstructor() override { return false; } 146 bool IsConstructor() override { return false; }
147 bool IsStrict() const override { return false; } 147 bool IsStrict() const override { return false; }
148 148
149 MaybeHandle<String> ToString() override; 149 MaybeHandle<String> ToString() override;
150 150
151 protected: 151 protected:
152 Handle<Object> Null() const; 152 Handle<Object> Null() const;
153 153
154 Isolate* isolate_; 154 Isolate* isolate_;
155 155
156 // TODO(wasm): Use proper typing.
156 Handle<Object> wasm_instance_; 157 Handle<Object> wasm_instance_;
157 uint32_t wasm_func_index_; 158 uint32_t wasm_func_index_;
158 Handle<AbstractCode> code_; 159 Handle<AbstractCode> code_;
159 int offset_; 160 int offset_;
160 161
161 private: 162 private:
162 void FromFrameArray(Isolate* isolate, Handle<FrameArray> array, int frame_ix); 163 void FromFrameArray(Isolate* isolate, Handle<FrameArray> array, int frame_ix);
163 164
164 friend class FrameArrayIterator; 165 friend class FrameArrayIterator;
165 }; 166 };
166 167
167 class AsmJsWasmStackFrame : public WasmStackFrame { 168 class AsmJsWasmStackFrame : public WasmStackFrame {
168 public: 169 public:
169 virtual ~AsmJsWasmStackFrame() {} 170 virtual ~AsmJsWasmStackFrame() {}
170 171
171 Handle<Object> GetReceiver() const override; 172 Handle<Object> GetReceiver() const override;
172 Handle<Object> GetFunction() const override; 173 Handle<Object> GetFunction() const override;
173 174
174 Handle<Object> GetFileName() override; 175 Handle<Object> GetFileName() override;
175 Handle<Object> GetFunctionName() override;
176 Handle<Object> GetScriptNameOrSourceUrl() override; 176 Handle<Object> GetScriptNameOrSourceUrl() override;
177 177
178 int GetPosition() const override; 178 int GetPosition() const override;
179 int GetLineNumber() override; 179 int GetLineNumber() override;
180 int GetColumnNumber() override; 180 int GetColumnNumber() override;
181 181
182 MaybeHandle<String> ToString() override; 182 MaybeHandle<String> ToString() override;
183 }; 183 };
184 184
185 class FrameArrayIterator { 185 class FrameArrayIterator {
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 704 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate, 705 static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate,
706 Handle<Object> data); 706 Handle<Object> data);
707 }; 707 };
708 708
709 709
710 } // namespace internal 710 } // namespace internal
711 } // namespace v8 711 } // namespace v8
712 712
713 #endif // V8_MESSAGES_H_ 713 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698