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

Side by Side Diff: src/messages.h

Issue 1142393003: [strong] Implement per-object restrictions behaviour of property freezing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 6 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/v8natives.js » ('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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 T(StaticPrototype, "Classes may not have static property named prototype") \ 220 T(StaticPrototype, "Classes may not have static property named prototype") \
221 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ 221 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \
222 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ 222 T(StrictDeleteProperty, "Cannot delete property '%' of %") \
223 T(StrictPoisonPill, \ 223 T(StrictPoisonPill, \
224 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ 224 "'caller', 'callee', and 'arguments' properties may not be accessed on " \
225 "strict mode functions or the arguments objects for calls to them") \ 225 "strict mode functions or the arguments objects for calls to them") \
226 T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %") \ 226 T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %") \
227 T(StrongArity, \ 227 T(StrongArity, \
228 "In strong mode, calling a function with too few arguments is deprecated") \ 228 "In strong mode, calling a function with too few arguments is deprecated") \
229 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ 229 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \
230 T(StrongRedefineDisallowed, \
231 "Cannot redefine non-configurable property '%' of strong object % to be " \
232 "non-writable") \
230 T(StrongSetProto, \ 233 T(StrongSetProto, \
231 "On strong object %, redefining the internal prototype is deprecated") \ 234 "On strong object %, redefining writable, non-configurable property '%' " \
235 "to be non-writable is deprecated") \
232 T(SymbolKeyFor, "% is not a symbol") \ 236 T(SymbolKeyFor, "% is not a symbol") \
233 T(SymbolToPrimitive, \ 237 T(SymbolToPrimitive, \
234 "Cannot convert a Symbol wrapper object to a primitive value") \ 238 "Cannot convert a Symbol wrapper object to a primitive value") \
235 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ 239 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \
236 T(SymbolToString, "Cannot convert a Symbol value to a string") \ 240 T(SymbolToString, "Cannot convert a Symbol value to a string") \
237 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ 241 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
238 T(ValueAndAccessor, \ 242 T(ValueAndAccessor, \
239 "Invalid property. A property cannot both have accessors and be " \ 243 "Invalid property. A property cannot both have accessors and be " \
240 "writable or have a value, %") \ 244 "writable or have a value, %") \
241 T(VarRedeclaration, "Identifier '%' has already been declared") \ 245 T(VarRedeclaration, "Identifier '%' has already been declared") \
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 446
443 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, 447 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc,
444 Handle<Object> message_obj); 448 Handle<Object> message_obj);
445 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 449 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
446 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 450 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
447 Handle<Object> data); 451 Handle<Object> data);
448 }; 452 };
449 } } // namespace v8::internal 453 } } // namespace v8::internal
450 454
451 #endif // V8_MESSAGES_H_ 455 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698