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

Side by Side Diff: src/messages.js

Issue 631433002: Classes runtime (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove kConstructorFunction Created 6 years, 2 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/full-codegen.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 // 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 167 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
168 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 168 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
169 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 169 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
170 harmony_const_assign: ["Assignment to constant variable."], 170 harmony_const_assign: ["Assignment to constant variable."],
171 symbol_to_string: ["Cannot convert a Symbol value to a string"], 171 symbol_to_string: ["Cannot convert a Symbol value to a string"],
172 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"], 172 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
173 symbol_to_number: ["Cannot convert a Symbol value to a number"], 173 symbol_to_number: ["Cannot convert a Symbol value to a number"],
174 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 174 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
175 module_type_error: ["Module '", "%0", "' used improperly"], 175 module_type_error: ["Module '", "%0", "' used improperly"],
176 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 176 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
177 unexpected_super: ["'super' keyword unexpected here"] 177 unexpected_super: ["'super' keyword unexpected here"],
178 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
179 prototype_parent_not_an_object: ["Class extends value does not have valid prot otype property ", "%0"]
178 }; 180 };
179 181
180 182
181 function FormatString(format, args) { 183 function FormatString(format, args) {
182 var result = ""; 184 var result = "";
183 var arg_num = 0; 185 var arg_num = 0;
184 for (var i = 0; i < format.length; i++) { 186 for (var i = 0; i < format.length; i++) {
185 var str = format[i]; 187 var str = format[i];
186 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) { 188 if (str.length == 2 && %_StringCharCodeAt(str, 0) == 0x25) {
187 // Two-char string starts with "%". 189 // Two-char string starts with "%".
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 function SetUpStackOverflowBoilerplate() { 1300 function SetUpStackOverflowBoilerplate() {
1299 var boilerplate = MakeRangeError('stack_overflow', []); 1301 var boilerplate = MakeRangeError('stack_overflow', []);
1300 1302
1301 %DefineAccessorPropertyUnchecked( 1303 %DefineAccessorPropertyUnchecked(
1302 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1304 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1303 1305
1304 return boilerplate; 1306 return boilerplate;
1305 } 1307 }
1306 1308
1307 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1309 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698