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

Side by Side Diff: src/messages.js

Issue 9615009: Basic interface inference for modules. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Eps. Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/interface.cc ('k') | src/parser.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 "strict_function", ["In strict mode code, functions can only be declared at top level or immediately within another function." ], 239 "strict_function", ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
240 "strict_read_only_property", ["Cannot assign to read only property '", "%0", "' of ", "%1"], 240 "strict_read_only_property", ["Cannot assign to read only property '", "%0", "' of ", "%1"],
241 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "' in strict mode"], 241 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "' in strict mode"],
242 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop erties may not be accessed on strict mode functions or the arguments objects for calls to them"], 242 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop erties may not be accessed on strict mode functions or the arguments objects for calls to them"],
243 "strict_caller", ["Illegal access to a strict mode caller f unction."], 243 "strict_caller", ["Illegal access to a strict mode caller f unction."],
244 "unprotected_let", ["Illegal let declaration in unprotected s tatement context."], 244 "unprotected_let", ["Illegal let declaration in unprotected s tatement context."],
245 "unprotected_const", ["Illegal const declaration in unprotected statement context."], 245 "unprotected_const", ["Illegal const declaration in unprotected statement context."],
246 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of an object with external array elements"], 246 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of an object with external array elements"],
247 "redef_external_array_element", ["Cannot redefine a property of an object with external array elements"], 247 "redef_external_array_element", ["Cannot redefine a property of an object with external array elements"],
248 "harmony_const_assign", ["Assignment to constant variable."], 248 "harmony_const_assign", ["Assignment to constant variable."],
249 "invalid_module_path", ["Module does not export '", "%0", "', or export is not itself a module"],
250 "module_type_error", ["Module '", "%0", "' used improperly"],
249 ]; 251 ];
250 var messages = { __proto__ : null }; 252 var messages = { __proto__ : null };
251 for (var i = 0; i < messagesDictionary.length; i += 2) { 253 for (var i = 0; i < messagesDictionary.length; i += 2) {
252 var key = messagesDictionary[i]; 254 var key = messagesDictionary[i];
253 var format = messagesDictionary[i + 1]; 255 var format = messagesDictionary[i + 1];
254 256
255 for (var j = 0; j < format.length; j++) { 257 for (var j = 0; j < format.length; j++) {
256 %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j], 258 %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j],
257 DONT_DELETE | READ_ONLY | DONT_ENUM); 259 DONT_DELETE | READ_ONLY | DONT_ENUM);
258 } 260 }
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 throw e; 1216 throw e;
1215 } 1217 }
1216 } 1218 }
1217 1219
1218 1220
1219 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); 1221 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]);
1220 1222
1221 // Boilerplate for exceptions for stack overflows. Used from 1223 // Boilerplate for exceptions for stack overflows. Used from
1222 // Isolate::StackOverflow(). 1224 // Isolate::StackOverflow().
1223 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1225 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/interface.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698