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

Side by Side Diff: src/messages.js

Issue 1127983003: Use function wrapper argument to expose internal arrays to native scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased and fixed nits Created 5 years, 7 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
« no previous file with comments | « src/math.js ('k') | src/object-observe.js » ('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 $errorToString; 7 var $errorToString;
8 var $formatMessage; 8 var $formatMessage;
9 var $getStackTraceLine; 9 var $getStackTraceLine;
10 var $messageGetPositionInLine; 10 var $messageGetPositionInLine;
(...skipping 17 matching lines...) Expand all
28 var MakeTypeError; 28 var MakeTypeError;
29 var MakeURIError; 29 var MakeURIError;
30 var MakeReferenceErrorEmbedded; 30 var MakeReferenceErrorEmbedded;
31 var MakeSyntaxErrorEmbedded; 31 var MakeSyntaxErrorEmbedded;
32 var MakeTypeErrorEmbedded; 32 var MakeTypeErrorEmbedded;
33 33
34 (function(global, shared, exports) { 34 (function(global, shared, exports) {
35 35
36 %CheckIsBootstrapping(); 36 %CheckIsBootstrapping();
37 37
38 // -------------------------------------------------------------------
39 // Imports
40
38 var GlobalObject = global.Object; 41 var GlobalObject = global.Object;
42 var InternalArray = shared.InternalArray;
43
44 // -------------------------------------------------------------------
45
39 var GlobalError; 46 var GlobalError;
40 var GlobalTypeError; 47 var GlobalTypeError;
41 var GlobalRangeError; 48 var GlobalRangeError;
42 var GlobalURIError; 49 var GlobalURIError;
43 var GlobalSyntaxError; 50 var GlobalSyntaxError;
44 var GlobalReferenceError; 51 var GlobalReferenceError;
45 var GlobalEvalError; 52 var GlobalEvalError;
46 53
47 // -------------------------------------------------------------------
48
49 var kMessages = { 54 var kMessages = {
50 // Error 55 // Error
51 constructor_is_generator: ["Class constructor may not be a generator"], 56 constructor_is_generator: ["Class constructor may not be a generator"],
52 constructor_is_accessor: ["Class constructor may not be an accessor"], 57 constructor_is_accessor: ["Class constructor may not be an accessor"],
53 // TypeError 58 // TypeError
54 unexpected_token: ["Unexpected token ", "%0"], 59 unexpected_token: ["Unexpected token ", "%0"],
55 unexpected_token_number: ["Unexpected number"], 60 unexpected_token_number: ["Unexpected number"],
56 unexpected_token_string: ["Unexpected string"], 61 unexpected_token_string: ["Unexpected string"],
57 unexpected_token_identifier: ["Unexpected identifier"], 62 unexpected_token_identifier: ["Unexpected identifier"],
58 unexpected_reserved: ["Unexpected reserved word"], 63 unexpected_reserved: ["Unexpected reserved word"],
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 return MakeGenericError(GlobalTypeError, type, [arg]); 1236 return MakeGenericError(GlobalTypeError, type, [arg]);
1232 } 1237 }
1233 1238
1234 //Boilerplate for exceptions for stack overflows. Used from 1239 //Boilerplate for exceptions for stack overflows. Used from
1235 //Isolate::StackOverflow(). 1240 //Isolate::StackOverflow().
1236 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1241 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1237 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1242 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1238 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1243 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1239 1244
1240 }) 1245 })
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698