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

Side by Side Diff: src/v8natives.js

Issue 1293113002: Remove property loads from js builtins objects from runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix stack overflow during bootstrapping Created 5 years, 4 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/messages.js ('k') | no next file » | 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 var $functionSourceString; 5 var $functionSourceString;
6 var $objectDefineOwnProperty;
7 var $objectGetOwnPropertyDescriptor;
8 6
9 (function(global, utils) { 7 (function(global, utils) {
10 8
11 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
12 10
13 // ---------------------------------------------------------------------------- 11 // ----------------------------------------------------------------------------
14 // Imports 12 // Imports
15 13
16 var GlobalArray = global.Array; 14 var GlobalArray = global.Array;
17 var GlobalBoolean = global.Boolean; 15 var GlobalBoolean = global.Boolean;
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 if (!IS_SPEC_OBJECT(iterator)) { 1776 if (!IS_SPEC_OBJECT(iterator)) {
1779 throw MakeTypeError(kNotAnIterator, iterator); 1777 throw MakeTypeError(kNotAnIterator, iterator);
1780 } 1778 }
1781 return iterator; 1779 return iterator;
1782 } 1780 }
1783 1781
1784 // ---------------------------------------------------------------------------- 1782 // ----------------------------------------------------------------------------
1785 // Exports 1783 // Exports
1786 1784
1787 $functionSourceString = FunctionSourceString; 1785 $functionSourceString = FunctionSourceString;
1788 $objectDefineOwnProperty = DefineOwnPropertyFromAPI;
1789 $objectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;
1790 1786
1791 utils.ObjectDefineProperties = ObjectDefineProperties; 1787 utils.ObjectDefineProperties = ObjectDefineProperties;
1792 utils.ObjectDefineProperty = ObjectDefineProperty; 1788 utils.ObjectDefineProperty = ObjectDefineProperty;
1793 1789
1794 utils.Export(function(to) { 1790 utils.Export(function(to) {
1795 to.Delete = Delete; 1791 to.Delete = Delete;
1796 to.GetIterator = GetIterator; 1792 to.GetIterator = GetIterator;
1797 to.GetMethod = GetMethod; 1793 to.GetMethod = GetMethod;
1798 to.IsFinite = GlobalIsFinite; 1794 to.IsFinite = GlobalIsFinite;
1799 to.IsNaN = GlobalIsNaN; 1795 to.IsNaN = GlobalIsNaN;
1800 to.NewFunctionString = NewFunctionString; 1796 to.NewFunctionString = NewFunctionString;
1801 to.NumberIsNaN = NumberIsNaN; 1797 to.NumberIsNaN = NumberIsNaN;
1802 to.ObjectDefineProperty = ObjectDefineProperty; 1798 to.ObjectDefineProperty = ObjectDefineProperty;
1803 to.ObjectFreeze = ObjectFreezeJS; 1799 to.ObjectFreeze = ObjectFreezeJS;
1804 to.ObjectGetOwnPropertyKeys = ObjectGetOwnPropertyKeys; 1800 to.ObjectGetOwnPropertyKeys = ObjectGetOwnPropertyKeys;
1805 to.ObjectHasOwnProperty = ObjectHasOwnProperty; 1801 to.ObjectHasOwnProperty = ObjectHasOwnProperty;
1806 to.ObjectIsFrozen = ObjectIsFrozen; 1802 to.ObjectIsFrozen = ObjectIsFrozen;
1807 to.ObjectIsSealed = ObjectIsSealed; 1803 to.ObjectIsSealed = ObjectIsSealed;
1808 to.ObjectToString = ObjectToString; 1804 to.ObjectToString = ObjectToString;
1809 to.OwnPropertyKeys = OwnPropertyKeys; 1805 to.OwnPropertyKeys = OwnPropertyKeys;
1810 to.ToNameArray = ToNameArray; 1806 to.ToNameArray = ToNameArray;
1811 }); 1807 });
1812 1808
1813 utils.ExportToRuntime(function(to) { 1809 utils.ExportToRuntime(function(to) {
1814 to.GlobalEval = GlobalEval; 1810 to.GlobalEval = GlobalEval;
1811 to.ObjectDefineOwnProperty = DefineOwnPropertyFromAPI;
1812 to.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;
1815 to.ToCompletePropertyDescriptor = ToCompletePropertyDescriptor; 1813 to.ToCompletePropertyDescriptor = ToCompletePropertyDescriptor;
1816 }); 1814 });
1817 1815
1818 }) 1816 })
OLDNEW
« no previous file with comments | « src/messages.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698