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

Side by Side Diff: src/messages.h

Issue 1880493002: Move TrapReason messages over to messages.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@include-objects-in-messages
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | src/wasm/wasm-opcodes.h » ('j') | src/wasm/wasm-opcodes.h » ('J')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 /* Error */ \ 76 /* Error */ \
77 T(None, "") \ 77 T(None, "") \
78 T(CyclicProto, "Cyclic __proto__ value") \ 78 T(CyclicProto, "Cyclic __proto__ value") \
79 T(Debugger, "Debugger: %") \ 79 T(Debugger, "Debugger: %") \
80 T(DebuggerLoading, "Error loading debugger") \ 80 T(DebuggerLoading, "Error loading debugger") \
81 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \ 81 T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \
82 T(UncaughtException, "Uncaught %") \ 82 T(UncaughtException, "Uncaught %") \
83 T(Unsupported, "Not supported") \ 83 T(Unsupported, "Not supported") \
84 T(WrongServiceType, "Internal error, wrong service type: %") \ 84 T(WrongServiceType, "Internal error, wrong service type: %") \
85 T(WrongValueType, "Internal error. Wrong value type.") \ 85 T(WrongValueType, "Internal error. Wrong value type.") \
86 T(WasmTrapUnreachable, "unreachable") \
87 T(WasmTrapMemOutOfBounds, "memory access out of bounds") \
88 T(WasmTrapDivByZero, "divide by zero") \
89 T(WasmTrapDivUnrepresentable, "divide result unrepresentable") \
90 T(WasmTrapRemByZero, "remainder by zero") \
91 T(WasmTrapFloatUnrepresentable, "integer result unrepresentable") \
92 T(WasmTrapFuncInvalid, "invalid function") \
93 T(WasmTrapFuncSigMismatch, "function signature mismatch") \
86 /* TypeError */ \ 94 /* TypeError */ \
87 T(ApplyNonFunction, \ 95 T(ApplyNonFunction, \
88 "Function.prototype.apply was called on %, which is a % and not a " \ 96 "Function.prototype.apply was called on %, which is a % and not a " \
89 "function") \ 97 "function") \
90 T(ArrayBufferTooShort, \ 98 T(ArrayBufferTooShort, \
91 "Derived ArrayBuffer constructor created a buffer which was too small") \ 99 "Derived ArrayBuffer constructor created a buffer which was too small") \
92 T(ArrayBufferSpeciesThis, \ 100 T(ArrayBufferSpeciesThis, \
93 "ArrayBuffer subclass returned this from species constructor") \ 101 "ArrayBuffer subclass returned this from species constructor") \
94 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ 102 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
95 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ 103 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 525 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 526 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
519 Handle<Object> data); 527 Handle<Object> data);
520 }; 528 };
521 529
522 530
523 } // namespace internal 531 } // namespace internal
524 } // namespace v8 532 } // namespace v8
525 533
526 #endif // V8_MESSAGES_H_ 534 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-opcodes.h » ('j') | src/wasm/wasm-opcodes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698