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

Side by Side Diff: src/messages.js

Issue 480543002: Parse 'super' keyword. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing (minor fix for tests in release mode) Created 6 years, 4 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/hydrogen.cc ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 var kMessages = { 7 var kMessages = {
8 // Error 8 // Error
9 cyclic_proto: ["Cyclic __proto__ value"], 9 cyclic_proto: ["Cyclic __proto__ value"],
10 code_gen_from_strings: ["%0"], 10 code_gen_from_strings: ["%0"],
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 160 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
161 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 161 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
162 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 162 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
163 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 163 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
164 harmony_const_assign: ["Assignment to constant variable."], 164 harmony_const_assign: ["Assignment to constant variable."],
165 symbol_to_string: ["Cannot convert a Symbol value to a string"], 165 symbol_to_string: ["Cannot convert a Symbol value to a string"],
166 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 166 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
167 symbol_to_number: ["Cannot convert a Symbol value to a number"], 167 symbol_to_number: ["Cannot convert a Symbol value to a number"],
168 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 168 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
169 module_type_error: ["Module '", "%0", "' used improperly"], 169 module_type_error: ["Module '", "%0", "' used improperly"],
170 module_export_undefined: ["Export '", "%0", "' is not defined in module" ] 170 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
171 unexpected_super: ["'super' keyword unexpected here"]
171 }; 172 };
172 173
173 174
174 function FormatString(format, args) { 175 function FormatString(format, args) {
175 var result = ""; 176 var result = "";
176 var arg_num = 0; 177 var arg_num = 0;
177 for (var i = 0; i < format.length; i++) { 178 for (var i = 0; i < format.length; i++) {
178 var str = format[i]; 179 var str = format[i];
179 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) { 180 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) {
180 // Two-char string starts with "%". 181 // Two-char string starts with "%".
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 function SetUpStackOverflowBoilerplate() { 1285 function SetUpStackOverflowBoilerplate() {
1285 var boilerplate = MakeRangeError('stack_overflow', []); 1286 var boilerplate = MakeRangeError('stack_overflow', []);
1286 1287
1287 %DefineAccessorPropertyUnchecked( 1288 %DefineAccessorPropertyUnchecked(
1288 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1289 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1289 1290
1290 return boilerplate; 1291 return boilerplate;
1291 } 1292 }
1292 1293
1293 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1294 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698