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

Side by Side Diff: src/messages.js

Issue 376223002: Refactor ScriptData class for cached compile data. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 illegal_let: ["Illegal let declaration outside extended mode "], 130 illegal_let: ["Illegal let declaration outside extended mode "],
131 error_loading_debugger: ["Error loading debugger"], 131 error_loading_debugger: ["Error loading debugger"],
132 no_input_to_regexp: ["No input to ", "%0"], 132 no_input_to_regexp: ["No input to ", "%0"],
133 invalid_json: ["String '", "%0", "' is not valid JSON"], 133 invalid_json: ["String '", "%0", "' is not valid JSON"],
134 circular_structure: ["Converting circular structure to JSON"], 134 circular_structure: ["Converting circular structure to JSON"],
135 called_on_non_object: ["%0", " called on non-object"], 135 called_on_non_object: ["%0", " called on non-object"],
136 called_on_null_or_undefined: ["%0", " called on null or undefined"], 136 called_on_null_or_undefined: ["%0", " called on null or undefined"],
137 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], 137 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"],
138 object_not_extensible: ["Can't add property ", "%0", ", object is not extensible"], 138 object_not_extensible: ["Can't add property ", "%0", ", object is not extensible"],
139 illegal_access: ["Illegal access"], 139 illegal_access: ["Illegal access"],
140 invalid_cached_data_function: ["Invalid cached data for function ", "%0"],
141 invalid_cached_data: ["Invalid cached data"],
142 strict_mode_with: ["Strict mode code may not include a with state ment"], 140 strict_mode_with: ["Strict mode code may not include a with state ment"],
143 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"] , 141 strict_eval_arguments: ["Unexpected eval or arguments in strict mode"] ,
144 too_many_arguments: ["Too many arguments in function call (only 655 35 allowed)"], 142 too_many_arguments: ["Too many arguments in function call (only 655 35 allowed)"],
145 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"], 143 too_many_parameters: ["Too many parameters in function definition (o nly 65535 allowed)"],
146 too_many_variables: ["Too many variables declared (only 4194303 all owed)"], 144 too_many_variables: ["Too many variables declared (only 4194303 all owed)"],
147 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"], 145 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"],
148 strict_octal_literal: ["Octal literals are not allowed in strict mode ."], 146 strict_octal_literal: ["Octal literals are not allowed in strict mode ."],
149 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"], 147 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"],
150 accessor_data_property: ["Object literal may not have data and accessor property with the same name"], 148 accessor_data_property: ["Object literal may not have data and accessor property with the same name"],
151 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"], 149 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"],
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 function SetUpStackOverflowBoilerplate() { 1280 function SetUpStackOverflowBoilerplate() {
1283 var boilerplate = MakeRangeError('stack_overflow', []); 1281 var boilerplate = MakeRangeError('stack_overflow', []);
1284 1282
1285 %DefineAccessorPropertyUnchecked( 1283 %DefineAccessorPropertyUnchecked(
1286 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1284 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1287 1285
1288 return boilerplate; 1286 return boilerplate;
1289 } 1287 }
1290 1288
1291 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1289 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/mksnapshot.cc » ('j') | src/preparse-data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698