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

Side by Side Diff: src/v8natives.js

Issue 668154: Inlining NumberIfFinite (ia32). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // ECMA 262 - 15.1.4 76 // ECMA 262 - 15.1.4
77 function GlobalIsNaN(number) { 77 function GlobalIsNaN(number) {
78 var n = ToNumber(number); 78 var n = ToNumber(number);
79 return NUMBER_IS_NAN(n); 79 return NUMBER_IS_NAN(n);
80 } 80 }
81 81
82 82
83 // ECMA 262 - 15.1.5 83 // ECMA 262 - 15.1.5
84 function GlobalIsFinite(number) { 84 function GlobalIsFinite(number) {
85 return %NumberIsFinite(ToNumber(number)); 85 return %_NumberIsFinite(ToNumber(number));
86 } 86 }
87 87
88 88
89 // ECMA-262 - 15.1.2.2 89 // ECMA-262 - 15.1.2.2
90 function GlobalParseInt(string, radix) { 90 function GlobalParseInt(string, radix) {
91 if (IS_UNDEFINED(radix)) { 91 if (IS_UNDEFINED(radix)) {
92 // Some people use parseInt instead of Math.floor. This 92 // Some people use parseInt instead of Math.floor. This
93 // optimization makes parseInt on a Smi 12 times faster (60ns 93 // optimization makes parseInt on a Smi 12 times faster (60ns
94 // vs 800ns). The following optimization makes parseInt on a 94 // vs 800ns). The following optimization makes parseInt on a
95 // non-Smi number 9 times faster (230ns vs 2070ns). Together 95 // non-Smi number 9 times faster (230ns vs 2070ns). Together
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 // ---------------------------------------------------------------------------- 993 // ----------------------------------------------------------------------------
994 994
995 function SetupFunction() { 995 function SetupFunction() {
996 InstallFunctions($Function.prototype, DONT_ENUM, $Array( 996 InstallFunctions($Function.prototype, DONT_ENUM, $Array(
997 "toString", FunctionToString 997 "toString", FunctionToString
998 )); 998 ));
999 } 999 }
1000 1000
1001 SetupFunction(); 1001 SetupFunction();
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/mips/codegen-mips.cc ('k') | src/x64/codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698