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

Side by Side Diff: src/messages.h

Issue 1424823005: Reland of Check that array length stays a safe integer in Array.prototype.push (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/array.js ('k') | test/mjsunit/harmony/array-length.js » ('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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 319 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
320 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 320 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
321 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 321 T(MalformedRegExpFlags, "Invalid regular expression flags") \
322 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 322 T(ModuleExportUndefined, "Export '%' is not defined in module") \
323 T(MultipleDefaultsInSwitch, \ 323 T(MultipleDefaultsInSwitch, \
324 "More than one default clause in switch statement") \ 324 "More than one default clause in switch statement") \
325 T(NewlineAfterThrow, "Illegal newline after throw") \ 325 T(NewlineAfterThrow, "Illegal newline after throw") \
326 T(NoCatchOrFinally, "Missing catch or finally after try") \ 326 T(NoCatchOrFinally, "Missing catch or finally after try") \
327 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 327 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
328 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ 328 T(ParamAfterRest, "Rest parameter must be last formal parameter") \
329 T(PushPastSafeLength, \
330 "Pushing % elements on an array-like of length % " \
331 "is disallowed, as the total surpasses 2**53-1") \
329 T(BadSetterRestParameter, \ 332 T(BadSetterRestParameter, \
330 "Setter function argument must not be a rest parameter") \ 333 "Setter function argument must not be a rest parameter") \
331 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 334 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
332 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 335 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
333 T(SingleFunctionLiteral, "Single function literal required") \ 336 T(SingleFunctionLiteral, "Single function literal required") \
334 T(SloppyLexical, \ 337 T(SloppyLexical, \
335 "Block-scoped declarations (let, const, function, class) not yet " \ 338 "Block-scoped declarations (let, const, function, class) not yet " \
336 "supported outside strict mode") \ 339 "supported outside strict mode") \
337 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 340 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
338 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 341 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 497 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
495 Isolate* isolate, LookupIterator* property_lookup, 498 Isolate* isolate, LookupIterator* property_lookup,
496 Handle<String> default_value); 499 Handle<String> default_value);
497 500
498 List<Handle<JSObject> > visited_; 501 List<Handle<JSObject> > visited_;
499 }; 502 };
500 } // namespace internal 503 } // namespace internal
501 } // namespace v8 504 } // namespace v8
502 505
503 #endif // V8_MESSAGES_H_ 506 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/array.js ('k') | test/mjsunit/harmony/array-length.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698