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

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

Issue 2114613002: [intrinsics] Drop the now obsolete %_DoubleHi and %_DoubleLo intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/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 12731 matching lines...) Expand 10 before | Expand all | Expand 10 after
12742 void HOptimizedGraphBuilder::GenerateRegExpSource(CallRuntime* call) { 12742 void HOptimizedGraphBuilder::GenerateRegExpSource(CallRuntime* call) {
12743 DCHECK_EQ(1, call->arguments()->length()); 12743 DCHECK_EQ(1, call->arguments()->length());
12744 CHECK_ALIVE(VisitExpressions(call->arguments())); 12744 CHECK_ALIVE(VisitExpressions(call->arguments()));
12745 HValue* regexp = Pop(); 12745 HValue* regexp = Pop();
12746 HInstruction* result = 12746 HInstruction* result =
12747 New<HLoadNamedField>(regexp, nullptr, HObjectAccess::ForJSRegExpSource()); 12747 New<HLoadNamedField>(regexp, nullptr, HObjectAccess::ForJSRegExpSource());
12748 return ast_context()->ReturnInstruction(result, call->id()); 12748 return ast_context()->ReturnInstruction(result, call->id());
12749 } 12749 }
12750 12750
12751 12751
12752 void HOptimizedGraphBuilder::GenerateDoubleLo(CallRuntime* call) {
12753 DCHECK_EQ(1, call->arguments()->length());
12754 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12755 HValue* value = Pop();
12756 HInstruction* result = NewUncasted<HDoubleBits>(value, HDoubleBits::LOW);
12757 return ast_context()->ReturnInstruction(result, call->id());
12758 }
12759
12760
12761 void HOptimizedGraphBuilder::GenerateDoubleHi(CallRuntime* call) {
12762 DCHECK_EQ(1, call->arguments()->length());
12763 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12764 HValue* value = Pop();
12765 HInstruction* result = NewUncasted<HDoubleBits>(value, HDoubleBits::HIGH);
12766 return ast_context()->ReturnInstruction(result, call->id());
12767 }
12768
12769
12770 // Construct a RegExp exec result with two in-object properties. 12752 // Construct a RegExp exec result with two in-object properties.
12771 void HOptimizedGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) { 12753 void HOptimizedGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) {
12772 DCHECK_EQ(3, call->arguments()->length()); 12754 DCHECK_EQ(3, call->arguments()->length());
12773 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12755 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12774 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 12756 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
12775 CHECK_ALIVE(VisitForValue(call->arguments()->at(2))); 12757 CHECK_ALIVE(VisitForValue(call->arguments()->at(2)));
12776 HValue* input = Pop(); 12758 HValue* input = Pop();
12777 HValue* index = Pop(); 12759 HValue* index = Pop();
12778 HValue* length = Pop(); 12760 HValue* length = Pop();
12779 HValue* result = BuildRegExpConstructResult(length, index, input); 12761 HValue* result = BuildRegExpConstructResult(length, index, input);
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
13673 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13655 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13674 } 13656 }
13675 13657
13676 #ifdef DEBUG 13658 #ifdef DEBUG
13677 graph_->Verify(false); // No full verify. 13659 graph_->Verify(false); // No full verify.
13678 #endif 13660 #endif
13679 } 13661 }
13680 13662
13681 } // namespace internal 13663 } // namespace internal
13682 } // namespace v8 13664 } // 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