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

Side by Side Diff: src/messages.js

Issue 6698015: Implement strict mode arguments caller/callee. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Kevin's feedback. Created 9 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/ia32/full-codegen-ia32.cc ('k') | src/runtime.cc » ('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 // 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 strict_lhs_assignment: ["Assignment to eval or arguments is not all owed in strict mode"], 223 strict_lhs_assignment: ["Assignment to eval or arguments is not all owed in strict mode"],
224 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"], 224 strict_lhs_postfix: ["Postfix increment/decrement may not have e val or arguments operand in strict mode"],
225 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"], 225 strict_lhs_prefix: ["Prefix increment/decrement may not have ev al or arguments operand in strict mode"],
226 strict_reserved_word: ["Use of future reserved word in strict mode "], 226 strict_reserved_word: ["Use of future reserved word in strict mode "],
227 strict_delete: ["Delete of an unqualified identifier in str ict mode."], 227 strict_delete: ["Delete of an unqualified identifier in str ict mode."],
228 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"], 228 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1"],
229 strict_const: ["Use of const in strict mode."], 229 strict_const: ["Use of const in strict mode."],
230 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ], 230 strict_function: ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
231 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"], 231 strict_read_only_property: ["Cannot assign to read only property '", "% 0", "' of ", "%1"],
232 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"], 232 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in strict mode"],
233 strict_arguments_callee: ["Cannot access property 'callee' of strict mode arguments"],
234 strict_arguments_caller: ["Cannot access property 'caller' of strict mode arguments"],
233 strict_function_caller: ["Cannot access property 'caller' of a stric t mode function"], 235 strict_function_caller: ["Cannot access property 'caller' of a stric t mode function"],
234 strict_function_arguments: ["Cannot access property 'arguments' of a st rict mode function"], 236 strict_function_arguments: ["Cannot access property 'arguments' of a st rict mode function"],
235 }; 237 };
236 } 238 }
237 var message_type = %MessageGetType(message); 239 var message_type = %MessageGetType(message);
238 var format = kMessages[message_type]; 240 var format = kMessages[message_type];
239 if (!format) return "<unknown message " + message_type + ">"; 241 if (!format) return "<unknown message " + message_type + ">";
240 return FormatString(format, message); 242 return FormatString(format, message);
241 } 243 }
242 244
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 else throw e; 1066 else throw e;
1065 } 1067 }
1066 } 1068 }
1067 1069
1068 1070
1069 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); 1071 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
1070 1072
1071 // Boilerplate for exceptions for stack overflows. Used from 1073 // Boilerplate for exceptions for stack overflows. Used from
1072 // Top::StackOverflow(). 1074 // Top::StackOverflow().
1073 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1075 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698