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

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

Issue 2029413005: [builtins] Migrate Math.log to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo. 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 12763 matching lines...) Expand 10 before | Expand all | Expand 10 after
12774 DCHECK_EQ(2, call->arguments()->length()); 12774 DCHECK_EQ(2, call->arguments()->length());
12775 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12775 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12776 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12776 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12777 HValue* right = Pop(); 12777 HValue* right = Pop();
12778 HValue* left = Pop(); 12778 HValue* left = Pop();
12779 HInstruction* result = NewUncasted<HPower>(left, right); 12779 HInstruction* result = NewUncasted<HPower>(left, right);
12780 return ast_context()->ReturnInstruction(result, call->id()); 12780 return ast_context()->ReturnInstruction(result, call->id());
12781 } 12781 }
12782 12782
12783 12783
12784 void HOptimizedGraphBuilder::GenerateMathLogRT(CallRuntime* call) {
12785 DCHECK(call->arguments()->length() == 1);
12786 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12787 HValue* value = Pop();
12788 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog);
12789 return ast_context()->ReturnInstruction(result, call->id());
12790 }
12791
12792
12793 void HOptimizedGraphBuilder::GenerateFixedArrayGet(CallRuntime* call) { 12784 void HOptimizedGraphBuilder::GenerateFixedArrayGet(CallRuntime* call) {
12794 DCHECK(call->arguments()->length() == 2); 12785 DCHECK(call->arguments()->length() == 2);
12795 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12786 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12796 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12787 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12797 HValue* index = Pop(); 12788 HValue* index = Pop();
12798 HValue* object = Pop(); 12789 HValue* object = Pop();
12799 HInstruction* result = New<HLoadKeyed>( 12790 HInstruction* result = New<HLoadKeyed>(
12800 object, index, nullptr, nullptr, FAST_HOLEY_ELEMENTS, ALLOW_RETURN_HOLE); 12791 object, index, nullptr, nullptr, FAST_HOLEY_ELEMENTS, ALLOW_RETURN_HOLE);
12801 return ast_context()->ReturnInstruction(result, call->id()); 12792 return ast_context()->ReturnInstruction(result, call->id());
12802 } 12793 }
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
13652 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13643 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13653 } 13644 }
13654 13645
13655 #ifdef DEBUG 13646 #ifdef DEBUG
13656 graph_->Verify(false); // No full verify. 13647 graph_->Verify(false); // No full verify.
13657 #endif 13648 #endif
13658 } 13649 }
13659 13650
13660 } // namespace internal 13651 } // namespace internal
13661 } // namespace v8 13652 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698