OLD | NEW |
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 "for-in loop variable declaration may not have an initializer.") \ | 306 "for-in loop variable declaration may not have an initializer.") \ |
307 T(ForInOfLoopMultiBindings, \ | 307 T(ForInOfLoopMultiBindings, \ |
308 "Invalid left-hand side in % loop: Must have a single binding.") \ | 308 "Invalid left-hand side in % loop: Must have a single binding.") \ |
309 T(ForOfLoopInitializer, \ | 309 T(ForOfLoopInitializer, \ |
310 "for-of loop variable declaration may not have an initializer.") \ | 310 "for-of loop variable declaration may not have an initializer.") \ |
311 T(IllegalAccess, "Illegal access") \ | 311 T(IllegalAccess, "Illegal access") \ |
312 T(IllegalBreak, "Illegal break statement") \ | 312 T(IllegalBreak, "Illegal break statement") \ |
313 T(IllegalContinue, "Illegal continue statement") \ | 313 T(IllegalContinue, "Illegal continue statement") \ |
314 T(IllegalReturn, "Illegal return statement") \ | 314 T(IllegalReturn, "Illegal return statement") \ |
315 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ | 315 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ |
| 316 T(InitializedAssignmentRestElement, \ |
| 317 "Illegal initialization of assignment rest element") \ |
| 318 T(InvalidDestructuringAssignmentTarget, \ |
| 319 "Invalid destructuring assignment target") \ |
316 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ | 320 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ |
317 T(InvalidLhsInPostfixOp, \ | 321 T(InvalidLhsInPostfixOp, \ |
318 "Invalid left-hand side expression in postfix operation") \ | 322 "Invalid left-hand side expression in postfix operation") \ |
319 T(InvalidLhsInPrefixOp, \ | 323 T(InvalidLhsInPrefixOp, \ |
320 "Invalid left-hand side expression in prefix operation") \ | 324 "Invalid left-hand side expression in prefix operation") \ |
321 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ | 325 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ |
322 T(LabelRedeclaration, "Label '%' has already been declared") \ | 326 T(LabelRedeclaration, "Label '%' has already been declared") \ |
323 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 327 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
324 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 328 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
325 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 329 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 454 |
451 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 455 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
452 Handle<Object> message_obj); | 456 Handle<Object> message_obj); |
453 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 457 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
454 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 458 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
455 Handle<Object> data); | 459 Handle<Object> data); |
456 }; | 460 }; |
457 } } // namespace v8::internal | 461 } } // namespace v8::internal |
458 | 462 |
459 #endif // V8_MESSAGES_H_ | 463 #endif // V8_MESSAGES_H_ |
OLD | NEW |