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