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

Side by Side Diff: src/js/v8natives.js

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « src/js/uri.js ('k') | src/js/weak-collection.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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 %CheckIsBootstrapping(); 7 %CheckIsBootstrapping();
8 8
9 // ---------------------------------------------------------------------------- 9 // ----------------------------------------------------------------------------
10 // Imports 10 // Imports
11 11
12 var FLAG_harmony_tostring; 12 var FLAG_harmony_tostring;
13 var GlobalArray = global.Array; 13 var GlobalArray = global.Array;
14 var GlobalBoolean = global.Boolean; 14 var GlobalBoolean = global.Boolean;
15 var GlobalFunction = global.Function; 15 var GlobalFunction = global.Function;
16 var GlobalNumber = global.Number; 16 var GlobalNumber = global.Number;
17 var GlobalObject = global.Object; 17 var GlobalObject = global.Object;
18 var InternalArray = utils.InternalArray; 18 var InternalArray = utils.InternalArray;
19 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 19 var iteratorSymbol = utils.ImportNow("iterator_symbol");
20 var MakeRangeError;
21 var MakeSyntaxError;
22 var MakeTypeError;
20 var MathAbs; 23 var MathAbs;
21 var NaN = %GetRootNaN(); 24 var NaN = %GetRootNaN();
22 var ObserveBeginPerformSplice; 25 var ObserveBeginPerformSplice;
23 var ObserveEndPerformSplice; 26 var ObserveEndPerformSplice;
24 var ObserveEnqueueSpliceRecord; 27 var ObserveEnqueueSpliceRecord;
25 var ProxyDelegateCallAndConstruct; 28 var ProxyDelegateCallAndConstruct;
26 var ProxyDerivedHasOwnTrap; 29 var ProxyDerivedHasOwnTrap;
27 var ProxyDerivedKeysTrap; 30 var ProxyDerivedKeysTrap;
28 var SameValue = utils.ImportNow("SameValue"); 31 var SameValue = utils.ImportNow("SameValue");
29 var StringIndexOf; 32 var StringIndexOf;
30 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 33 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
31 34
32 utils.Import(function(from) { 35 utils.Import(function(from) {
36 MakeRangeError = from.MakeRangeError;
37 MakeSyntaxError = from.MakeSyntaxError;
38 MakeTypeError = from.MakeTypeError;
33 MathAbs = from.MathAbs; 39 MathAbs = from.MathAbs;
34 ObserveBeginPerformSplice = from.ObserveBeginPerformSplice; 40 ObserveBeginPerformSplice = from.ObserveBeginPerformSplice;
35 ObserveEndPerformSplice = from.ObserveEndPerformSplice; 41 ObserveEndPerformSplice = from.ObserveEndPerformSplice;
36 ObserveEnqueueSpliceRecord = from.ObserveEnqueueSpliceRecord; 42 ObserveEnqueueSpliceRecord = from.ObserveEnqueueSpliceRecord;
37 StringIndexOf = from.StringIndexOf; 43 StringIndexOf = from.StringIndexOf;
38 }); 44 });
39 45
40 utils.ImportFromExperimental(function(from) { 46 utils.ImportFromExperimental(function(from) {
41 FLAG_harmony_tostring = from.FLAG_harmony_tostring; 47 FLAG_harmony_tostring = from.FLAG_harmony_tostring;
42 ProxyDelegateCallAndConstruct = from.ProxyDelegateCallAndConstruct; 48 ProxyDelegateCallAndConstruct = from.ProxyDelegateCallAndConstruct;
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 %InstallToContext([ 1849 %InstallToContext([
1844 "global_eval_fun", GlobalEval, 1850 "global_eval_fun", GlobalEval,
1845 "object_value_of", ObjectValueOf, 1851 "object_value_of", ObjectValueOf,
1846 "object_to_string", ObjectToString, 1852 "object_to_string", ObjectToString,
1847 "object_define_own_property", DefineOwnPropertyFromAPI, 1853 "object_define_own_property", DefineOwnPropertyFromAPI,
1848 "object_get_own_property_descriptor", ObjectGetOwnPropertyDescriptor, 1854 "object_get_own_property_descriptor", ObjectGetOwnPropertyDescriptor,
1849 "to_complete_property_descriptor", ToCompletePropertyDescriptor, 1855 "to_complete_property_descriptor", ToCompletePropertyDescriptor,
1850 ]); 1856 ]);
1851 1857
1852 }) 1858 })
OLDNEW
« no previous file with comments | « src/js/uri.js ('k') | src/js/weak-collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698