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

Side by Side Diff: src/runtime.cc

Issue 275433004: Require SSE2 support for the ia32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« no previous file with comments | « src/platform-posix.cc ('k') | src/v8globals.h » ('j') | 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 7889 matching lines...) Expand 10 before | Expand all | Expand 10 after
7900 HandleScope scope(isolate); 7900 HandleScope scope(isolate);
7901 ASSERT(args.length() == 1); 7901 ASSERT(args.length() == 1);
7902 isolate->counters()->math_floor()->Increment(); 7902 isolate->counters()->math_floor()->Increment();
7903 7903
7904 CONVERT_DOUBLE_ARG_CHECKED(x, 0); 7904 CONVERT_DOUBLE_ARG_CHECKED(x, 0);
7905 return *isolate->factory()->NewNumber(std::floor(x)); 7905 return *isolate->factory()->NewNumber(std::floor(x));
7906 } 7906 }
7907 7907
7908 7908
7909 // Slow version of Math.pow. We check for fast paths for special cases. 7909 // Slow version of Math.pow. We check for fast paths for special cases.
7910 // Used if SSE2/VFP3 is not available. 7910 // Used if VFP3 is not available.
7911 RUNTIME_FUNCTION(RuntimeHidden_MathPowSlow) { 7911 RUNTIME_FUNCTION(RuntimeHidden_MathPowSlow) {
7912 HandleScope scope(isolate); 7912 HandleScope scope(isolate);
7913 ASSERT(args.length() == 2); 7913 ASSERT(args.length() == 2);
7914 isolate->counters()->math_pow()->Increment(); 7914 isolate->counters()->math_pow()->Increment();
7915 7915
7916 CONVERT_DOUBLE_ARG_CHECKED(x, 0); 7916 CONVERT_DOUBLE_ARG_CHECKED(x, 0);
7917 7917
7918 // If the second argument is a smi, it is much faster to call the 7918 // If the second argument is a smi, it is much faster to call the
7919 // custom powi() function than the generic pow(). 7919 // custom powi() function than the generic pow().
7920 if (args[1]->IsSmi()) { 7920 if (args[1]->IsSmi()) {
(...skipping 7343 matching lines...) Expand 10 before | Expand all | Expand 10 after
15264 } 15264 }
15265 return NULL; 15265 return NULL;
15266 } 15266 }
15267 15267
15268 15268
15269 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15269 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15270 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15270 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15271 } 15271 }
15272 15272
15273 } } // namespace v8::internal 15273 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698