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

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

Issue 2083453002: [builtins] Introduce proper Float64Tan 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/hydrogen.h ('k') | src/crankshaft/hydrogen-instructions.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 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 12756 matching lines...) Expand 10 before | Expand all | Expand 10 after
12767 12767
12768 void HOptimizedGraphBuilder::GenerateDoubleHi(CallRuntime* call) { 12768 void HOptimizedGraphBuilder::GenerateDoubleHi(CallRuntime* call) {
12769 DCHECK_EQ(1, call->arguments()->length()); 12769 DCHECK_EQ(1, call->arguments()->length());
12770 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12770 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12771 HValue* value = Pop(); 12771 HValue* value = Pop();
12772 HInstruction* result = NewUncasted<HDoubleBits>(value, HDoubleBits::HIGH); 12772 HInstruction* result = NewUncasted<HDoubleBits>(value, HDoubleBits::HIGH);
12773 return ast_context()->ReturnInstruction(result, call->id()); 12773 return ast_context()->ReturnInstruction(result, call->id());
12774 } 12774 }
12775 12775
12776 12776
12777 void HOptimizedGraphBuilder::GenerateConstructDouble(CallRuntime* call) {
12778 DCHECK_EQ(2, call->arguments()->length());
12779 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12780 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12781 HValue* lo = Pop();
12782 HValue* hi = Pop();
12783 HInstruction* result = NewUncasted<HConstructDouble>(hi, lo);
12784 return ast_context()->ReturnInstruction(result, call->id());
12785 }
12786
12787
12788 // Construct a RegExp exec result with two in-object properties. 12777 // Construct a RegExp exec result with two in-object properties.
12789 void HOptimizedGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) { 12778 void HOptimizedGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) {
12790 DCHECK_EQ(3, call->arguments()->length()); 12779 DCHECK_EQ(3, call->arguments()->length());
12791 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12780 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12792 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12781 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12793 CHECK_ALIVE(VisitForValue(call->arguments()->at(2))); 12782 CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
12794 HValue* input = Pop(); 12783 HValue* input = Pop();
12795 HValue* index = Pop(); 12784 HValue* index = Pop();
12796 HValue* length = Pop(); 12785 HValue* length = Pop();
12797 HValue* result = BuildRegExpConstructResult(length, index, input); 12786 HValue* result = BuildRegExpConstructResult(length, index, input);
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
13702 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13691 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13703 } 13692 }
13704 13693
13705 #ifdef DEBUG 13694 #ifdef DEBUG
13706 graph_->Verify(false); // No full verify. 13695 graph_->Verify(false); // No full verify.
13707 #endif 13696 #endif
13708 } 13697 }
13709 13698
13710 } // namespace internal 13699 } // namespace internal
13711 } // namespace v8 13700 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/crankshaft/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698