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

Side by Side Diff: src/messages.h

Issue 1439693002: [runtime] Support Proxy setPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-11-09_new_Proxy_1417063011
Patch Set: reverting error change 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 | « no previous file | src/objects.h » ('j') | src/objects.h » ('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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 T(NotGeneric, "% is not generic") \ 149 T(NotGeneric, "% is not generic") \
150 T(NotIterable, "% is not iterable") \ 150 T(NotIterable, "% is not iterable") \
151 T(NotTypedArray, "this is not a typed array.") \ 151 T(NotTypedArray, "this is not a typed array.") \
152 T(NotSharedTypedArray, "% is not a shared typed array.") \ 152 T(NotSharedTypedArray, "% is not a shared typed array.") \
153 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ 153 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \
154 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ 154 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \
155 T(ObjectGetterExpectingFunction, \ 155 T(ObjectGetterExpectingFunction, \
156 "Object.prototype.__defineGetter__: Expecting function") \ 156 "Object.prototype.__defineGetter__: Expecting function") \
157 T(ObjectGetterCallable, "Getter must be a function: %") \ 157 T(ObjectGetterCallable, "Getter must be a function: %") \
158 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ 158 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \
159 T(ObjectSetPrototypeFailed, "Could not set '%' as Protoype on '%'") \
neis 2015/11/16 19:09:53 s/Protoype/prototype/ But why do we need both this
160 T(ObjectSetPrototypeNotExtensible, \
161 "Can't set prototype, object is not extensible") \
159 T(ObjectSetterExpectingFunction, \ 162 T(ObjectSetterExpectingFunction, \
160 "Object.prototype.__defineSetter__: Expecting function") \ 163 "Object.prototype.__defineSetter__: Expecting function") \
161 T(ObjectSetterCallable, "Setter must be a function: %") \ 164 T(ObjectSetterCallable, "Setter must be a function: %") \
162 T(ObserveCallbackFrozen, \ 165 T(ObserveCallbackFrozen, \
163 "Object.observe cannot deliver to a frozen function object") \ 166 "Object.observe cannot deliver to a frozen function object") \
164 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \ 167 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \
165 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \ 168 T(ObserveAccessChecked, "% cannot be called on access-checked objects") \
166 T(ObserveInvalidAccept, \ 169 T(ObserveInvalidAccept, \
167 "Third argument to Object.observe must be an array of strings.") \ 170 "Third argument to Object.observe must be an array of strings.") \
168 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ 171 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \
169 T(ObserveNonObject, "Object.% cannot % non-object") \ 172 T(ObserveNonObject, "Object.% cannot % non-object") \
170 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ 173 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \
171 T(ObservePerformNonFunction, "Cannot perform non-function") \ 174 T(ObservePerformNonFunction, "Cannot perform non-function") \
172 T(ObservePerformNonString, "Invalid non-string changeType") \ 175 T(ObservePerformNonString, "Invalid non-string changeType") \
173 T(ObserveTypeNonString, \ 176 T(ObserveTypeNonString, \
174 "Invalid changeRecord with non-string 'type' property") \ 177 "Invalid changeRecord with non-string 'type' property") \
175 T(OrdinaryFunctionCalledAsConstructor, \ 178 T(OrdinaryFunctionCalledAsConstructor, \
176 "Function object that's not a constructor was created with new") \ 179 "Function object that's not a constructor was created with new") \
177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ 180 T(PromiseCyclic, "Chaining cycle detected for promise %") \
178 T(PropertyDescObject, "Property description must be an object: %") \ 181 T(PropertyDescObject, "Property description must be an object: %") \
179 T(PropertyNotFunction, "Property '%' of object % is not a function") \ 182 T(PropertyNotFunction, "Property '%' of object % is not a function") \
183 T(ProtoNotSet, "Could not set prototype '%' on '%'' ") \
180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ 184 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
181 T(PrototypeParentNotAnObject, \ 185 T(PrototypeParentNotAnObject, \
182 "Class extends value does not have valid prototype property %") \ 186 "Class extends value does not have valid prototype property %") \
183 T(ProxyHandlerDeleteFailed, \ 187 T(ProxyHandlerDeleteFailed, \
184 "Proxy handler % did not return a boolean value from 'delete' trap") \ 188 "Proxy handler % did not return a boolean value from 'delete' trap") \
185 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ 189 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \
186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ 190 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \
187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ 191 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \
188 T(ProxyHandlerTrapMustBeCallable, \ 192 T(ProxyHandlerTrapMustBeCallable, \
189 "Proxy handler %0 has non-callable '%' trap") \ 193 "Proxy handler %0 has non-callable '%' trap") \
190 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ 194 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \
191 T(ProxyPropNotConfigurable, \ 195 T(ProxyPropNotConfigurable, \
192 "Proxy handler % returned non-configurable descriptor for property '%' " \ 196 "Proxy handler % returned non-configurable descriptor for property '%' " \
193 "from '%' trap") \ 197 "from '%' trap") \
194 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ 198 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \
195 T(ProxyTargetNonObject, "Proxy.% called with non-object as target") \ 199 T(ProxyTargetNonObject, "Proxy.% called with non-object as target") \
196 T(ProxyTrapFunctionExpected, \ 200 T(ProxyTrapFunctionExpected, \
197 "Proxy.createFunction called with non-function for '%' trap") \ 201 "Proxy.createFunction called with non-function for '%' trap") \
202 T(ProxyTrapReturnedFalse, "Proxy trap '%s' returned false.") \
198 T(RedefineDisallowed, "Cannot redefine property: %") \ 203 T(RedefineDisallowed, "Cannot redefine property: %") \
199 T(RedefineExternalArray, \ 204 T(RedefineExternalArray, \
200 "Cannot redefine a property of an object with external array elements") \ 205 "Cannot redefine a property of an object with external array elements") \
201 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ 206 T(ReduceNoInitial, "Reduce of empty array with no initial value") \
202 T(RegExpFlags, \ 207 T(RegExpFlags, \
203 "Cannot supply flags when constructing one RegExp from another") \ 208 "Cannot supply flags when constructing one RegExp from another") \
204 T(RegExpNonObject, "% getter called on non-object %") \ 209 T(RegExpNonObject, "% getter called on non-object %") \
205 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ 210 T(RegExpNonRegExp, "% getter called on non-RegExp object") \
206 T(ReinitializeIntl, "Trying to re-initialize % object.") \ 211 T(ReinitializeIntl, "Trying to re-initialize % object.") \
207 T(ResolvedOptionsCalledOnNonObject, \ 212 T(ResolvedOptionsCalledOnNonObject, \
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 503 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
499 Isolate* isolate, LookupIterator* property_lookup, 504 Isolate* isolate, LookupIterator* property_lookup,
500 Handle<String> default_value); 505 Handle<String> default_value);
501 506
502 List<Handle<JSObject> > visited_; 507 List<Handle<JSObject> > visited_;
503 }; 508 };
504 } // namespace internal 509 } // namespace internal
505 } // namespace v8 510 } // namespace v8
506 511
507 #endif // V8_MESSAGES_H_ 512 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698