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

Side by Side Diff: src/messages.h

Issue 1139773005: [destructuring] More tests for object literal pattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments addressed, landing Created 5 years, 7 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/parser.h » ('j') | test/message/destructuring-modify-const.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 141 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
142 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ 142 T(IteratorResultNotAnObject, "Iterator result % is not an object") \
143 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ 143 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
144 T(LanguageID, "Language ID should be string or object.") \ 144 T(LanguageID, "Language ID should be string or object.") \
145 T(MethodCalledOnWrongObject, \ 145 T(MethodCalledOnWrongObject, \
146 "Method % called on a non-object or on a wrong type of object.") \ 146 "Method % called on a non-object or on a wrong type of object.") \
147 T(MethodInvokedOnNullOrUndefined, \ 147 T(MethodInvokedOnNullOrUndefined, \
148 "Method invoked on undefined or null value.") \ 148 "Method invoked on undefined or null value.") \
149 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ 149 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
150 T(NoAccess, "no access") \ 150 T(NoAccess, "no access") \
151 T(NonCoercible, "Cannot match against 'undefined' or 'null'.") \
151 T(NonExtensibleProto, "% is not extensible") \ 152 T(NonExtensibleProto, "% is not extensible") \
152 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ 153 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \
153 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ 154 T(NonObjectPropertyStore, "Cannot set property '%' of %") \
154 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ 155 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \
155 T(NotAnIterator, "% is not an iterator") \ 156 T(NotAnIterator, "% is not an iterator") \
156 T(NotAPromise, "% is not a promise") \ 157 T(NotAPromise, "% is not a promise") \
157 T(NotConstructor, "% is not a constructor") \ 158 T(NotConstructor, "% is not a constructor") \
158 T(NotDateObject, "this is not a Date object.") \ 159 T(NotDateObject, "this is not a Date object.") \
159 T(NotIntlObject, "% is not an i18n object.") \ 160 T(NotIntlObject, "% is not an i18n object.") \
160 T(NotGeneric, "% is not generic") \ 161 T(NotGeneric, "% is not generic") \
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 440
440 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, 441 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc,
441 Handle<Object> message_obj); 442 Handle<Object> message_obj);
442 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 443 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
443 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 444 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
444 Handle<Object> data); 445 Handle<Object> data);
445 }; 446 };
446 } } // namespace v8::internal 447 } } // namespace v8::internal
447 448
448 #endif // V8_MESSAGES_H_ 449 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | test/message/destructuring-modify-const.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698