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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2077533002: [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Import tests from Raymond. Created 4 years, 6 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "src/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast/ast-numbering.h" 10 #include "src/ast/ast-numbering.h"
(...skipping 8838 matching lines...) Expand 10 before | Expand all | Expand 10 after
8849 } 8849 }
8850 8850
8851 8851
8852 bool HOptimizedGraphBuilder::TryInlineBuiltinFunctionCall(Call* expr) { 8852 bool HOptimizedGraphBuilder::TryInlineBuiltinFunctionCall(Call* expr) {
8853 if (!expr->target()->shared()->HasBuiltinFunctionId()) return false; 8853 if (!expr->target()->shared()->HasBuiltinFunctionId()) return false;
8854 BuiltinFunctionId id = expr->target()->shared()->builtin_function_id(); 8854 BuiltinFunctionId id = expr->target()->shared()->builtin_function_id();
8855 // We intentionally ignore expr->tail_call_mode() here because builtins 8855 // We intentionally ignore expr->tail_call_mode() here because builtins
8856 // we inline here do not observe if they were tail called or not. 8856 // we inline here do not observe if they were tail called or not.
8857 switch (id) { 8857 switch (id) {
8858 case kMathExp: 8858 case kMathExp:
8859 if (!FLAG_fast_math) break;
8860 // Fall through if FLAG_fast_math.
8861 case kMathRound: 8859 case kMathRound:
8862 case kMathFround: 8860 case kMathFround:
8863 case kMathFloor: 8861 case kMathFloor:
8864 case kMathAbs: 8862 case kMathAbs:
8865 case kMathSqrt: 8863 case kMathSqrt:
8866 case kMathLog: 8864 case kMathLog:
8867 case kMathClz32: 8865 case kMathClz32:
8868 if (expr->arguments()->length() == 1) { 8866 if (expr->arguments()->length() == 1) {
8869 HValue* argument = Pop(); 8867 HValue* argument = Pop();
8870 Drop(2); // Receiver and function. 8868 Drop(2); // Receiver and function.
(...skipping 4831 matching lines...) Expand 10 before | Expand all | Expand 10 after
13702 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13700 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13703 } 13701 }
13704 13702
13705 #ifdef DEBUG 13703 #ifdef DEBUG
13706 graph_->Verify(false); // No full verify. 13704 graph_->Verify(false); // No full verify.
13707 #endif 13705 #endif
13708 } 13706 }
13709 13707
13710 } // namespace internal 13708 } // namespace internal
13711 } // namespace v8 13709 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698