| 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 11099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11110 ASSERT_EQ(2, call->arguments()->length()); | 11110 ASSERT_EQ(2, call->arguments()->length()); |
| 11111 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11111 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 11112 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); | 11112 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); |
| 11113 HValue* right = Pop(); | 11113 HValue* right = Pop(); |
| 11114 HValue* left = Pop(); | 11114 HValue* left = Pop(); |
| 11115 HInstruction* result = NewUncasted<HPower>(left, right); | 11115 HInstruction* result = NewUncasted<HPower>(left, right); |
| 11116 return ast_context()->ReturnInstruction(result, call->id()); | 11116 return ast_context()->ReturnInstruction(result, call->id()); |
| 11117 } | 11117 } |
| 11118 | 11118 |
| 11119 | 11119 |
| 11120 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { | 11120 void HOptimizedGraphBuilder::GenerateMathLogRT(CallRuntime* call) { |
| 11121 ASSERT(call->arguments()->length() == 1); | 11121 ASSERT(call->arguments()->length() == 1); |
| 11122 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11122 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 11123 HValue* value = Pop(); | 11123 HValue* value = Pop(); |
| 11124 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); | 11124 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); |
| 11125 return ast_context()->ReturnInstruction(result, call->id()); | 11125 return ast_context()->ReturnInstruction(result, call->id()); |
| 11126 } | 11126 } |
| 11127 | 11127 |
| 11128 | 11128 |
| 11129 void HOptimizedGraphBuilder::GenerateMathSqrtRT(CallRuntime* call) { | 11129 void HOptimizedGraphBuilder::GenerateMathSqrtRT(CallRuntime* call) { |
| 11130 ASSERT(call->arguments()->length() == 1); | 11130 ASSERT(call->arguments()->length() == 1); |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11801 if (ShouldProduceTraceOutput()) { | 11801 if (ShouldProduceTraceOutput()) { |
| 11802 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11802 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 11803 } | 11803 } |
| 11804 | 11804 |
| 11805 #ifdef DEBUG | 11805 #ifdef DEBUG |
| 11806 graph_->Verify(false); // No full verify. | 11806 graph_->Verify(false); // No full verify. |
| 11807 #endif | 11807 #endif |
| 11808 } | 11808 } |
| 11809 | 11809 |
| 11810 } } // namespace v8::internal | 11810 } } // namespace v8::internal |
| OLD | NEW |