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

Side by Side Diff: src/messages.h

Issue 2161953003: Remove stack overflow boilerplate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 private: 65 private:
66 Isolate* isolate_; 66 Isolate* isolate_;
67 Handle<Object> receiver_; 67 Handle<Object> receiver_;
68 Handle<JSFunction> fun_; 68 Handle<JSFunction> fun_;
69 int32_t pos_ = -1; 69 int32_t pos_ = -1;
70 Handle<JSObject> wasm_obj_; 70 Handle<JSObject> wasm_obj_;
71 uint32_t wasm_func_index_ = static_cast<uint32_t>(-1); 71 uint32_t wasm_func_index_ = static_cast<uint32_t>(-1);
72 }; 72 };
73 73
74 Object* ConstructError(Isolate* isolate, Handle<JSFunction> target,
75 Handle<Object> new_target, Handle<Object> message);
76
74 #define MESSAGE_TEMPLATES(T) \ 77 #define MESSAGE_TEMPLATES(T) \
75 /* Error */ \ 78 /* Error */ \
76 T(None, "") \ 79 T(None, "") \
77 T(CyclicProto, "Cyclic __proto__ value") \ 80 T(CyclicProto, "Cyclic __proto__ value") \
78 T(Debugger, "Debugger: %") \ 81 T(Debugger, "Debugger: %") \
79 T(DebuggerLoading, "Error loading debugger") \ 82 T(DebuggerLoading, "Error loading debugger") \
80 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \ 83 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \
81 T(UncaughtException, "Uncaught %") \ 84 T(UncaughtException, "Uncaught %") \
82 T(Unsupported, "Not supported") \ 85 T(Unsupported, "Not supported") \
83 T(WrongServiceType, "Internal error, wrong service type: %") \ 86 T(WrongServiceType, "Internal error, wrong service type: %") \
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 538 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
536 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 539 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
537 Handle<Object> data); 540 Handle<Object> data);
538 }; 541 };
539 542
540 543
541 } // namespace internal 544 } // namespace internal
542 } // namespace v8 545 } // namespace v8
543 546
544 #endif // V8_MESSAGES_H_ 547 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698