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 "hydrogen.h" | 5 #include "hydrogen.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "v8.h" | 9 #include "v8.h" |
10 #include "allocation-site-scopes.h" | 10 #include "allocation-site-scopes.h" |
(...skipping 11104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11115 | 11115 |
11116 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { | 11116 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { |
11117 ASSERT(call->arguments()->length() == 1); | 11117 ASSERT(call->arguments()->length() == 1); |
11118 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11118 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
11119 HValue* value = Pop(); | 11119 HValue* value = Pop(); |
11120 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); | 11120 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); |
11121 return ast_context()->ReturnInstruction(result, call->id()); | 11121 return ast_context()->ReturnInstruction(result, call->id()); |
11122 } | 11122 } |
11123 | 11123 |
11124 | 11124 |
11125 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { | 11125 void HOptimizedGraphBuilder::GenerateMathSqrtRT(CallRuntime* call) { |
11126 ASSERT(call->arguments()->length() == 1); | 11126 ASSERT(call->arguments()->length() == 1); |
11127 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11127 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
11128 HValue* value = Pop(); | 11128 HValue* value = Pop(); |
11129 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); | 11129 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); |
11130 return ast_context()->ReturnInstruction(result, call->id()); | 11130 return ast_context()->ReturnInstruction(result, call->id()); |
11131 } | 11131 } |
11132 | 11132 |
11133 | 11133 |
11134 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { | 11134 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { |
11135 ASSERT(call->arguments()->length() == 1); | 11135 ASSERT(call->arguments()->length() == 1); |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11797 if (ShouldProduceTraceOutput()) { | 11797 if (ShouldProduceTraceOutput()) { |
11798 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11798 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
11799 } | 11799 } |
11800 | 11800 |
11801 #ifdef DEBUG | 11801 #ifdef DEBUG |
11802 graph_->Verify(false); // No full verify. | 11802 graph_->Verify(false); // No full verify. |
11803 #endif | 11803 #endif |
11804 } | 11804 } |
11805 | 11805 |
11806 } } // namespace v8::internal | 11806 } } // namespace v8::internal |
OLD | NEW |