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

Side by Side Diff: src/hydrogen.cc

Issue 1004083002: [turbofan] Use builtin inlining mechanism for Math.abs and Math.sqrt. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/hydrogen.h ('k') | src/math.js » ('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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11994 matching lines...) Expand 10 before | Expand all | Expand 10 after
12005 12005
12006 void HOptimizedGraphBuilder::GenerateMathLogRT(CallRuntime* call) { 12006 void HOptimizedGraphBuilder::GenerateMathLogRT(CallRuntime* call) {
12007 DCHECK(call->arguments()->length() == 1); 12007 DCHECK(call->arguments()->length() == 1);
12008 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12008 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12009 HValue* value = Pop(); 12009 HValue* value = Pop();
12010 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); 12010 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog);
12011 return ast_context()->ReturnInstruction(result, call->id()); 12011 return ast_context()->ReturnInstruction(result, call->id());
12012 } 12012 }
12013 12013
12014 12014
12015 void HOptimizedGraphBuilder::GenerateMathSqrtRT(CallRuntime* call) { 12015 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) {
12016 DCHECK(call->arguments()->length() == 1); 12016 DCHECK(call->arguments()->length() == 1);
12017 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12017 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12018 HValue* value = Pop(); 12018 HValue* value = Pop();
12019 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); 12019 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt);
12020 return ast_context()->ReturnInstruction(result, call->id()); 12020 return ast_context()->ReturnInstruction(result, call->id());
12021 } 12021 }
12022 12022
12023 12023
12024 HValue* HOptimizedGraphBuilder::BuildOrderedHashTableHashToBucket( 12024 HValue* HOptimizedGraphBuilder::BuildOrderedHashTableHashToBucket(
12025 HValue* hash, HValue* num_buckets) { 12025 HValue* hash, HValue* num_buckets) {
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
13378 if (ShouldProduceTraceOutput()) { 13378 if (ShouldProduceTraceOutput()) {
13379 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13379 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13380 } 13380 }
13381 13381
13382 #ifdef DEBUG 13382 #ifdef DEBUG
13383 graph_->Verify(false); // No full verify. 13383 graph_->Verify(false); // No full verify.
13384 #endif 13384 #endif
13385 } 13385 }
13386 13386
13387 } } // namespace v8::internal 13387 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698