OLD | NEW |
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 var $functionSourceString; | 5 var $functionSourceString; |
6 var $globalEval; | |
7 var $objectDefineOwnProperty; | 6 var $objectDefineOwnProperty; |
8 var $objectGetOwnPropertyDescriptor; | 7 var $objectGetOwnPropertyDescriptor; |
9 var $toCompletePropertyDescriptor; | |
10 | 8 |
11 (function(global, utils) { | 9 (function(global, utils) { |
12 | 10 |
13 %CheckIsBootstrapping(); | 11 %CheckIsBootstrapping(); |
14 | 12 |
15 // ---------------------------------------------------------------------------- | 13 // ---------------------------------------------------------------------------- |
16 // Imports | 14 // Imports |
17 | 15 |
18 var GlobalArray = global.Array; | 16 var GlobalArray = global.Array; |
19 var GlobalBoolean = global.Boolean; | 17 var GlobalBoolean = global.Boolean; |
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 if (!IS_SPEC_OBJECT(iterator)) { | 1778 if (!IS_SPEC_OBJECT(iterator)) { |
1781 throw MakeTypeError(kNotAnIterator, iterator); | 1779 throw MakeTypeError(kNotAnIterator, iterator); |
1782 } | 1780 } |
1783 return iterator; | 1781 return iterator; |
1784 } | 1782 } |
1785 | 1783 |
1786 // ---------------------------------------------------------------------------- | 1784 // ---------------------------------------------------------------------------- |
1787 // Exports | 1785 // Exports |
1788 | 1786 |
1789 $functionSourceString = FunctionSourceString; | 1787 $functionSourceString = FunctionSourceString; |
1790 $globalEval = GlobalEval; | |
1791 $objectDefineOwnProperty = DefineOwnPropertyFromAPI; | 1788 $objectDefineOwnProperty = DefineOwnPropertyFromAPI; |
1792 $objectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor; | 1789 $objectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor; |
1793 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; | |
1794 | 1790 |
1795 utils.ObjectDefineProperties = ObjectDefineProperties; | 1791 utils.ObjectDefineProperties = ObjectDefineProperties; |
1796 utils.ObjectDefineProperty = ObjectDefineProperty; | 1792 utils.ObjectDefineProperty = ObjectDefineProperty; |
1797 | 1793 |
1798 utils.Export(function(to) { | 1794 utils.Export(function(to) { |
1799 to.Delete = Delete; | 1795 to.Delete = Delete; |
1800 to.GetIterator = GetIterator; | 1796 to.GetIterator = GetIterator; |
1801 to.GetMethod = GetMethod; | 1797 to.GetMethod = GetMethod; |
1802 to.IsFinite = GlobalIsFinite; | 1798 to.IsFinite = GlobalIsFinite; |
1803 to.IsNaN = GlobalIsNaN; | 1799 to.IsNaN = GlobalIsNaN; |
1804 to.NewFunctionString = NewFunctionString; | 1800 to.NewFunctionString = NewFunctionString; |
1805 to.NumberIsNaN = NumberIsNaN; | 1801 to.NumberIsNaN = NumberIsNaN; |
1806 to.ObjectDefineProperty = ObjectDefineProperty; | 1802 to.ObjectDefineProperty = ObjectDefineProperty; |
1807 to.ObjectFreeze = ObjectFreezeJS; | 1803 to.ObjectFreeze = ObjectFreezeJS; |
1808 to.ObjectGetOwnPropertyKeys = ObjectGetOwnPropertyKeys; | 1804 to.ObjectGetOwnPropertyKeys = ObjectGetOwnPropertyKeys; |
1809 to.ObjectHasOwnProperty = ObjectHasOwnProperty; | 1805 to.ObjectHasOwnProperty = ObjectHasOwnProperty; |
1810 to.ObjectIsFrozen = ObjectIsFrozen; | 1806 to.ObjectIsFrozen = ObjectIsFrozen; |
1811 to.ObjectIsSealed = ObjectIsSealed; | 1807 to.ObjectIsSealed = ObjectIsSealed; |
1812 to.ObjectToString = ObjectToString; | 1808 to.ObjectToString = ObjectToString; |
1813 to.OwnPropertyKeys = OwnPropertyKeys; | 1809 to.OwnPropertyKeys = OwnPropertyKeys; |
1814 to.ToNameArray = ToNameArray; | 1810 to.ToNameArray = ToNameArray; |
1815 }); | 1811 }); |
1816 | 1812 |
| 1813 utils.ExportToRuntime(function(to) { |
| 1814 to.GlobalEval = GlobalEval; |
| 1815 to.ToCompletePropertyDescriptor = ToCompletePropertyDescriptor; |
| 1816 }); |
| 1817 |
1817 }) | 1818 }) |
OLD | NEW |