OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |