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

Side by Side Diff: src/messages.h

Issue 1393263003: Emit better error message if array buffer allocation fails (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove test Created 5 years, 2 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/runtime/runtime-typedarray.cc » ('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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 T(StrongSuperCallMissing, \ 246 T(StrongSuperCallMissing, \
247 "In strong mode, invoking the super constructor in a subclass is " \ 247 "In strong mode, invoking the super constructor in a subclass is " \
248 "required") \ 248 "required") \
249 T(StrongUnboundGlobal, \ 249 T(StrongUnboundGlobal, \
250 "In strong mode, using an undeclared global variable '%' is not allowed") \ 250 "In strong mode, using an undeclared global variable '%' is not allowed") \
251 T(UnsupportedSuper, "Unsupported reference to 'super'") \ 251 T(UnsupportedSuper, "Unsupported reference to 'super'") \
252 /* RangeError */ \ 252 /* RangeError */ \
253 T(DateRange, "Provided date is not in valid range.") \ 253 T(DateRange, "Provided date is not in valid range.") \
254 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \ 254 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \
255 T(InvalidArrayBufferLength, "Invalid array buffer length") \ 255 T(InvalidArrayBufferLength, "Invalid array buffer length") \
256 T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \
256 T(InvalidArrayLength, "Invalid array length") \ 257 T(InvalidArrayLength, "Invalid array length") \
257 T(InvalidCodePoint, "Invalid code point %") \ 258 T(InvalidCodePoint, "Invalid code point %") \
258 T(InvalidCountValue, "Invalid count value") \ 259 T(InvalidCountValue, "Invalid count value") \
259 T(InvalidCurrencyCode, "Invalid currency code: %") \ 260 T(InvalidCurrencyCode, "Invalid currency code: %") \
260 T(InvalidDataViewAccessorOffset, \ 261 T(InvalidDataViewAccessorOffset, \
261 "Offset is outside the bounds of the DataView") \ 262 "Offset is outside the bounds of the DataView") \
262 T(InvalidDataViewLength, "Invalid data view length") \ 263 T(InvalidDataViewLength, "Invalid data view length") \
263 T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \ 264 T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \
264 T(InvalidHint, "Invalid hint: %") \ 265 T(InvalidHint, "Invalid hint: %") \
265 T(InvalidLanguageTag, "Invalid language tag: %") \ 266 T(InvalidLanguageTag, "Invalid language tag: %") \
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 492 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
492 Isolate* isolate, LookupIterator* property_lookup, 493 Isolate* isolate, LookupIterator* property_lookup,
493 Handle<String> default_value); 494 Handle<String> default_value);
494 495
495 List<Handle<JSObject> > visited_; 496 List<Handle<JSObject> > visited_;
496 }; 497 };
497 } // namespace internal 498 } // namespace internal
498 } // namespace v8 499 } // namespace v8
499 500
500 #endif // V8_MESSAGES_H_ 501 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698