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

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

Issue 2103733003: [turbofan] Introduce Float64Pow and NumberPow operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE on ARM64 bug fix. Created 4 years, 5 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/hydrogen.h ('k') | src/external-reference-table.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 12790 matching lines...) Expand 10 before | Expand all | Expand 10 after
12801 HValue* target = Pop(); 12801 HValue* target = Pop();
12802 HValue* values[] = {context(), target, 12802 HValue* values[] = {context(), target,
12803 Add<HConstant>(call->arguments()->length() - 2)}; 12803 Add<HConstant>(call->arguments()->length() - 2)};
12804 HInstruction* result = 12804 HInstruction* result =
12805 New<HCallWithDescriptor>(trampoline, call->arguments()->length() - 1, 12805 New<HCallWithDescriptor>(trampoline, call->arguments()->length() - 1,
12806 descriptor, ArrayVector(values)); 12806 descriptor, ArrayVector(values));
12807 return ast_context()->ReturnInstruction(result, call->id()); 12807 return ast_context()->ReturnInstruction(result, call->id());
12808 } 12808 }
12809 12809
12810 12810
12811 // Fast call to math functions.
12812 void HOptimizedGraphBuilder::GenerateMathPow(CallRuntime* call) {
12813 DCHECK_EQ(2, call->arguments()->length());
12814 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12815 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12816 HValue* right = Pop();
12817 HValue* left = Pop();
12818 HInstruction* result = NewUncasted<HPower>(left, right);
12819 return ast_context()->ReturnInstruction(result, call->id());
12820 }
12821
12822
12823 void HOptimizedGraphBuilder::GenerateFixedArrayGet(CallRuntime* call) { 12811 void HOptimizedGraphBuilder::GenerateFixedArrayGet(CallRuntime* call) {
12824 DCHECK(call->arguments()->length() == 2); 12812 DCHECK(call->arguments()->length() == 2);
12825 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12813 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12826 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12814 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12827 HValue* index = Pop(); 12815 HValue* index = Pop();
12828 HValue* object = Pop(); 12816 HValue* object = Pop();
12829 HInstruction* result = New<HLoadKeyed>( 12817 HInstruction* result = New<HLoadKeyed>(
12830 object, index, nullptr, nullptr, FAST_HOLEY_ELEMENTS, ALLOW_RETURN_HOLE); 12818 object, index, nullptr, nullptr, FAST_HOLEY_ELEMENTS, ALLOW_RETURN_HOLE);
12831 return ast_context()->ReturnInstruction(result, call->id()); 12819 return ast_context()->ReturnInstruction(result, call->id());
12832 } 12820 }
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
13685 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13673 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13686 } 13674 }
13687 13675
13688 #ifdef DEBUG 13676 #ifdef DEBUG
13689 graph_->Verify(false); // No full verify. 13677 graph_->Verify(false); // No full verify.
13690 #endif 13678 #endif
13691 } 13679 }
13692 13680
13693 } // namespace internal 13681 } // namespace internal
13694 } // namespace v8 13682 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/external-reference-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698