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

Side by Side Diff: src/messages.h

Issue 1470193002: Array/TypedArray/ArrayBuffer method subclassing and @@species (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 11 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 | « src/js/typedarray.js ('k') | src/runtime/runtime.h » ('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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /* TypeError */ \ 86 /* TypeError */ \
87 T(ApplyNonFunction, \ 87 T(ApplyNonFunction, \
88 "Function.prototype.apply was called on %, which is a % and not a " \ 88 "Function.prototype.apply was called on %, which is a % and not a " \
89 "function") \ 89 "function") \
90 T(ArrayBufferTooShort, \
91 "Derived ArrayBuffer constructor created a buffer which was too small") \
92 T(ArrayBufferSpeciesThis, \
93 "ArrayBuffer subclass returned this from species constructor") \
90 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ 94 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
91 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ 95 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
92 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ 96 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \
93 T(CalledNonCallable, "% is not a function") \ 97 T(CalledNonCallable, "% is not a function") \
94 T(CalledOnNonObject, "% called on non-object") \ 98 T(CalledOnNonObject, "% called on non-object") \
95 T(CalledOnNullOrUndefined, "% called on null or undefined") \ 99 T(CalledOnNullOrUndefined, "% called on null or undefined") \
96 T(CallSiteExpectsFunction, \ 100 T(CallSiteExpectsFunction, \
97 "CallSite expects function as second argument, got %") \ 101 "CallSite expects function as second argument, got %") \
98 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ 102 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
99 T(CannotPreventExt, "Cannot prevent extensions") \ 103 T(CannotPreventExt, "Cannot prevent extensions") \
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ 288 T(RegExpNonRegExp, "% getter called on non-RegExp object") \
285 T(ReinitializeIntl, "Trying to re-initialize % object.") \ 289 T(ReinitializeIntl, "Trying to re-initialize % object.") \
286 T(ResolvedOptionsCalledOnNonObject, \ 290 T(ResolvedOptionsCalledOnNonObject, \
287 "resolvedOptions method called on a non-object or on a object that is " \ 291 "resolvedOptions method called on a non-object or on a object that is " \
288 "not Intl.%.") \ 292 "not Intl.%.") \
289 T(ResolverNotAFunction, "Promise resolver % is not a function") \ 293 T(ResolverNotAFunction, "Promise resolver % is not a function") \
290 T(RestrictedFunctionProperties, \ 294 T(RestrictedFunctionProperties, \
291 "'caller' and 'arguments' are restricted function properties and cannot " \ 295 "'caller' and 'arguments' are restricted function properties and cannot " \
292 "be accessed in this context.") \ 296 "be accessed in this context.") \
293 T(StaticPrototype, "Classes may not have static property named prototype") \ 297 T(StaticPrototype, "Classes may not have static property named prototype") \
294 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ 298 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \
295 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ 299 T(StrictDeleteProperty, "Cannot delete property '%' of %") \
296 T(StrictPoisonPill, \ 300 T(StrictPoisonPill, \
297 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ 301 "'caller', 'callee', and 'arguments' properties may not be accessed on " \
298 "strict mode functions or the arguments objects for calls to them") \ 302 "strict mode functions or the arguments objects for calls to them") \
299 T(StrictReadOnlyProperty, \ 303 T(StrictReadOnlyProperty, \
300 "Cannot assign to read only property '%' of % '%'") \ 304 "Cannot assign to read only property '%' of % '%'") \
301 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \ 305 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \
302 T(StrongArity, \ 306 T(StrongArity, \
303 "In strong mode, calling a function with too few arguments is deprecated") \ 307 "In strong mode, calling a function with too few arguments is deprecated") \
304 T(StrongDeleteProperty, \ 308 T(StrongDeleteProperty, \
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 T(StrongVar, \ 484 T(StrongVar, \
481 "In strong mode, 'var' is deprecated, use 'let' or 'const' instead") \ 485 "In strong mode, 'var' is deprecated, use 'let' or 'const' instead") \
482 T(TemplateOctalLiteral, \ 486 T(TemplateOctalLiteral, \
483 "Octal literals are not allowed in template strings.") \ 487 "Octal literals are not allowed in template strings.") \
484 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 488 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
485 T(TooManyArguments, \ 489 T(TooManyArguments, \
486 "Too many arguments in function call (only 65535 allowed)") \ 490 "Too many arguments in function call (only 65535 allowed)") \
487 T(TooManyParameters, \ 491 T(TooManyParameters, \
488 "Too many parameters in function definition (only 65535 allowed)") \ 492 "Too many parameters in function definition (only 65535 allowed)") \
489 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 493 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
494 T(TypedArrayTooShort, \
495 "Derived TypedArray constructor created an array which was too small") \
490 T(UnexpectedEOS, "Unexpected end of input") \ 496 T(UnexpectedEOS, "Unexpected end of input") \
491 T(UnexpectedReserved, "Unexpected reserved word") \ 497 T(UnexpectedReserved, "Unexpected reserved word") \
492 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ 498 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \
493 T(UnexpectedSuper, "'super' keyword unexpected here") \ 499 T(UnexpectedSuper, "'super' keyword unexpected here") \
494 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ 500 T(UnexpectedNewTarget, "new.target expression is not allowed here") \
495 T(UnexpectedTemplateString, "Unexpected template string") \ 501 T(UnexpectedTemplateString, "Unexpected template string") \
496 T(UnexpectedToken, "Unexpected token %") \ 502 T(UnexpectedToken, "Unexpected token %") \
497 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ 503 T(UnexpectedTokenIdentifier, "Unexpected identifier") \
498 T(UnexpectedTokenNumber, "Unexpected number") \ 504 T(UnexpectedTokenNumber, "Unexpected number") \
499 T(UnexpectedTokenString, "Unexpected string") \ 505 T(UnexpectedTokenString, "Unexpected string") \
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 554 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
549 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 555 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
550 Handle<Object> data); 556 Handle<Object> data);
551 }; 557 };
552 558
553 559
554 } // namespace internal 560 } // namespace internal
555 } // namespace v8 561 } // namespace v8
556 562
557 #endif // V8_MESSAGES_H_ 563 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/typedarray.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698