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

Side by Side Diff: src/messages.h

Issue 2158303002: Begin porting CallSite to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@remove-overflow-boilerplate
Patch Set: Rebase Created 4 years, 5 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 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Return 1-based column number, including column offset if first line. 55 // Return 1-based column number, including column offset if first line.
56 int GetColumnNumber(); 56 int GetColumnNumber();
57 bool IsNative(); 57 bool IsNative();
58 bool IsToplevel(); 58 bool IsToplevel();
59 bool IsEval(); 59 bool IsEval();
60 bool IsConstructor(); 60 bool IsConstructor();
61 61
62 bool IsJavaScript() { return !fun_.is_null(); } 62 bool IsJavaScript() { return !fun_.is_null(); }
63 bool IsWasm() { return !wasm_obj_.is_null(); } 63 bool IsWasm() { return !wasm_obj_.is_null(); }
64 64
65 int wasm_func_index() const { return wasm_func_index_; }
66
65 private: 67 private:
66 Isolate* isolate_; 68 Isolate* isolate_;
67 Handle<Object> receiver_; 69 Handle<Object> receiver_;
68 Handle<JSFunction> fun_; 70 Handle<JSFunction> fun_;
69 int32_t pos_ = -1; 71 int32_t pos_ = -1;
70 Handle<JSObject> wasm_obj_; 72 Handle<JSObject> wasm_obj_;
71 uint32_t wasm_func_index_ = static_cast<uint32_t>(-1); 73 uint32_t wasm_func_index_ = static_cast<uint32_t>(-1);
72 }; 74 };
73 75
74 // Determines how stack trace collection skips frames. 76 // Determines how stack trace collection skips frames.
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 551 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
550 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 552 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
551 Handle<Object> data); 553 Handle<Object> data);
552 }; 554 };
553 555
554 556
555 } // namespace internal 557 } // namespace internal
556 } // namespace v8 558 } // namespace v8
557 559
558 #endif // V8_MESSAGES_H_ 560 #endif // V8_MESSAGES_H_
OLDNEW
« src/js/messages.js ('K') | « src/js/messages.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698