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

Side by Side Diff: src/messages.h

Issue 1224523002: Avoid converting key to string for deleting of elements (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/array.js ('k') | src/objects.cc » ('j') | src/v8natives.js » ('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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 /* ReferenceError */ \ 251 /* ReferenceError */ \
252 T(NonMethod, "'super' is referenced from non-method") \ 252 T(NonMethod, "'super' is referenced from non-method") \
253 T(NotDefined, "% is not defined") \ 253 T(NotDefined, "% is not defined") \
254 T(StrongSuperCallMissing, \ 254 T(StrongSuperCallMissing, \
255 "In strong mode, invoking the super constructor in a subclass is " \ 255 "In strong mode, invoking the super constructor in a subclass is " \
256 "required") \ 256 "required") \
257 T(StrongUnboundGlobal, \ 257 T(StrongUnboundGlobal, \
258 "In strong mode, using an undeclared global variable '%' is not allowed") \ 258 "In strong mode, using an undeclared global variable '%' is not allowed") \
259 T(UnsupportedSuper, "Unsupported reference to 'super'") \ 259 T(UnsupportedSuper, "Unsupported reference to 'super'") \
260 /* RangeError */ \ 260 /* RangeError */ \
261 T(ArrayLengthOutOfRange, "defineProperty() array length out of range") \
262 T(DateRange, "Provided date is not in valid range.") \ 261 T(DateRange, "Provided date is not in valid range.") \
263 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \ 262 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \
264 T(InvalidArrayBufferLength, "Invalid array buffer length") \ 263 T(InvalidArrayBufferLength, "Invalid array buffer length") \
265 T(InvalidArrayLength, "Invalid array length") \ 264 T(InvalidArrayLength, "Invalid array length") \
266 T(InvalidCodePoint, "Invalid code point %") \ 265 T(InvalidCodePoint, "Invalid code point %") \
267 T(InvalidCountValue, "Invalid count value") \ 266 T(InvalidCountValue, "Invalid count value") \
268 T(InvalidCurrencyCode, "Invalid currency code: %") \ 267 T(InvalidCurrencyCode, "Invalid currency code: %") \
269 T(InvalidDataViewAccessorOffset, \ 268 T(InvalidDataViewAccessorOffset, \
270 "Offset is outside the bounds of the DataView") \ 269 "Offset is outside the bounds of the DataView") \
271 T(InvalidDataViewLength, "Invalid data view length") \ 270 T(InvalidDataViewLength, "Invalid data view length") \
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 451
453 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, 452 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc,
454 Handle<Object> message_obj); 453 Handle<Object> message_obj);
455 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 454 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
456 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 455 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
457 Handle<Object> data); 456 Handle<Object> data);
458 }; 457 };
459 } } // namespace v8::internal 458 } } // namespace v8::internal
460 459
461 #endif // V8_MESSAGES_H_ 460 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/objects.cc » ('j') | src/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698