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

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

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen-instructions.cc » ('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 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.
8859 case kMathRound: 8861 case kMathRound:
8860 case kMathFround: 8862 case kMathFround:
8861 case kMathFloor: 8863 case kMathFloor:
8862 case kMathAbs: 8864 case kMathAbs:
8863 case kMathSqrt: 8865 case kMathSqrt:
8864 case kMathLog: 8866 case kMathLog:
8865 case kMathClz32: 8867 case kMathClz32:
8866 if (expr->arguments()->length() == 1) { 8868 if (expr->arguments()->length() == 1) {
8867 HValue* argument = Pop(); 8869 HValue* argument = Pop();
8868 Drop(2); // Receiver and function. 8870 Drop(2); // Receiver and function.
(...skipping 4831 matching lines...) Expand 10 before | Expand all | Expand 10 after
13700 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13702 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13701 } 13703 }
13702 13704
13703 #ifdef DEBUG 13705 #ifdef DEBUG
13704 graph_->Verify(false); // No full verify. 13706 graph_->Verify(false); // No full verify.
13705 #endif 13707 #endif
13706 } 13708 }
13707 13709
13708 } // namespace internal 13710 } // namespace internal
13709 } // namespace v8 13711 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698