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

Side by Side Diff: src/messages.h

Issue 1409013006: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
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/symbol.js ('k') | src/objects.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 T(DebuggerFrame, "Debugger: Invalid frame index.") \ 109 T(DebuggerFrame, "Debugger: Invalid frame index.") \
110 T(DebuggerType, "Debugger: Parameters have wrong types.") \ 110 T(DebuggerType, "Debugger: Parameters have wrong types.") \
111 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 111 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
112 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ 112 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
113 T(ExtendsValueGenerator, \ 113 T(ExtendsValueGenerator, \
114 "Class extends value % may not be a generator function") \ 114 "Class extends value % may not be a generator function") \
115 T(ExtendsValueNotFunction, \ 115 T(ExtendsValueNotFunction, \
116 "Class extends value % is not a function or null") \ 116 "Class extends value % is not a function or null") \
117 T(FirstArgumentNotRegExp, \ 117 T(FirstArgumentNotRegExp, \
118 "First argument to % must not be a regular expression") \ 118 "First argument to % must not be a regular expression") \
119 T(FlagsGetterNonObject, \
120 "RegExp.prototype.flags getter called on non-object %") \
119 T(FunctionBind, "Bind must be called on a function") \ 121 T(FunctionBind, "Bind must be called on a function") \
120 T(GeneratorRunning, "Generator is already running") \ 122 T(GeneratorRunning, "Generator is already running") \
121 T(IllegalInvocation, "Illegal invocation") \ 123 T(IllegalInvocation, "Illegal invocation") \
122 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ 124 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
123 T(InstanceofFunctionExpected, \ 125 T(InstanceofFunctionExpected, \
124 "Expecting a function in instanceof check, but got %") \ 126 "Expecting a function in instanceof check, but got %") \
125 T(InstanceofNonobjectProto, \ 127 T(InstanceofNonobjectProto, \
126 "Function has non-object prototype '%' in instanceof check") \ 128 "Function has non-object prototype '%' in instanceof check") \
127 T(InvalidArgument, "invalid_argument") \ 129 T(InvalidArgument, "invalid_argument") \
128 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 130 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 "from '%' trap") \ 195 "from '%' trap") \
194 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ 196 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \
195 T(ProxyTrapFunctionExpected, \ 197 T(ProxyTrapFunctionExpected, \
196 "Proxy.createFunction called with non-function for '%' trap") \ 198 "Proxy.createFunction called with non-function for '%' trap") \
197 T(RedefineDisallowed, "Cannot redefine property: %") \ 199 T(RedefineDisallowed, "Cannot redefine property: %") \
198 T(RedefineExternalArray, \ 200 T(RedefineExternalArray, \
199 "Cannot redefine a property of an object with external array elements") \ 201 "Cannot redefine a property of an object with external array elements") \
200 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ 202 T(ReduceNoInitial, "Reduce of empty array with no initial value") \
201 T(RegExpFlags, \ 203 T(RegExpFlags, \
202 "Cannot supply flags when constructing one RegExp from another") \ 204 "Cannot supply flags when constructing one RegExp from another") \
203 T(RegExpNonObject, "% getter called on non-object %") \
204 T(RegExpNonRegExp, "% is not an RegExp object") \
205 T(ReinitializeIntl, "Trying to re-initialize % object.") \ 205 T(ReinitializeIntl, "Trying to re-initialize % object.") \
206 T(ResolvedOptionsCalledOnNonObject, \ 206 T(ResolvedOptionsCalledOnNonObject, \
207 "resolvedOptions method called on a non-object or on a object that is " \ 207 "resolvedOptions method called on a non-object or on a object that is " \
208 "not Intl.%.") \ 208 "not Intl.%.") \
209 T(ResolverNotAFunction, "Promise resolver % is not a function") \ 209 T(ResolverNotAFunction, "Promise resolver % is not a function") \
210 T(RestrictedFunctionProperties, \ 210 T(RestrictedFunctionProperties, \
211 "'caller' and 'arguments' are restricted function properties and cannot " \ 211 "'caller' and 'arguments' are restricted function properties and cannot " \
212 "be accessed in this context.") \ 212 "be accessed in this context.") \
213 T(StaticPrototype, "Classes may not have static property named prototype") \ 213 T(StaticPrototype, "Classes may not have static property named prototype") \
214 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ 214 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 497 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
498 Isolate* isolate, LookupIterator* property_lookup, 498 Isolate* isolate, LookupIterator* property_lookup,
499 Handle<String> default_value); 499 Handle<String> default_value);
500 500
501 List<Handle<JSObject> > visited_; 501 List<Handle<JSObject> > visited_;
502 }; 502 };
503 } // namespace internal 503 } // namespace internal
504 } // namespace v8 504 } // namespace v8
505 505
506 #endif // V8_MESSAGES_H_ 506 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/symbol.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698