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

Side by Side Diff: src/v8natives.js

Issue 1067933002: Use NumberIsNaN in collections.js and make it inlined (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/collection.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 // This file relies on the fact that the following declarations have been made 5 // This file relies on the fact that the following declarations have been made
6 // in runtime.js: 6 // in runtime.js:
7 // var $Object = global.Object; 7 // var $Object = global.Object;
8 // var $Boolean = global.Boolean; 8 // var $Boolean = global.Boolean;
9 // var $Number = global.Number; 9 // var $Number = global.Number;
10 // var $Function = global.Function; 10 // var $Function = global.Function;
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 1708
1709 // Harmony Number constructor additions 1709 // Harmony Number constructor additions
1710 InstallFunctions($Number, DONT_ENUM, $Array( 1710 InstallFunctions($Number, DONT_ENUM, $Array(
1711 "isFinite", NumberIsFinite, 1711 "isFinite", NumberIsFinite,
1712 "isInteger", NumberIsInteger, 1712 "isInteger", NumberIsInteger,
1713 "isNaN", NumberIsNaN, 1713 "isNaN", NumberIsNaN,
1714 "isSafeInteger", NumberIsSafeInteger, 1714 "isSafeInteger", NumberIsSafeInteger,
1715 "parseInt", GlobalParseInt, 1715 "parseInt", GlobalParseInt,
1716 "parseFloat", GlobalParseFloat 1716 "parseFloat", GlobalParseFloat
1717 )); 1717 ));
1718
1719 %SetInlineBuiltinFlag(NumberIsNaN);
1718 } 1720 }
1719 1721
1720 SetUpNumber(); 1722 SetUpNumber();
1721 1723
1722 1724
1723 // ---------------------------------------------------------------------------- 1725 // ----------------------------------------------------------------------------
1724 // Function 1726 // Function
1725 1727
1726 function FunctionSourceString(func) { 1728 function FunctionSourceString(func) {
1727 while (%IsJSFunctionProxy(func)) { 1729 while (%IsJSFunctionProxy(func)) {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 } 1893 }
1892 if (!IS_SPEC_FUNCTION(method)) { 1894 if (!IS_SPEC_FUNCTION(method)) {
1893 throw MakeTypeError('not_iterable', [obj]); 1895 throw MakeTypeError('not_iterable', [obj]);
1894 } 1896 }
1895 var iterator = %_CallFunction(obj, method); 1897 var iterator = %_CallFunction(obj, method);
1896 if (!IS_SPEC_OBJECT(iterator)) { 1898 if (!IS_SPEC_OBJECT(iterator)) {
1897 throw MakeTypeError('not_an_iterator', [iterator]); 1899 throw MakeTypeError('not_an_iterator', [iterator]);
1898 } 1900 }
1899 return iterator; 1901 return iterator;
1900 } 1902 }
OLDNEW
« no previous file with comments | « src/collection.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698