OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 10767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10778 | 10778 |
10779 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { | 10779 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { |
10780 ASSERT(call->arguments()->length() == 1); | 10780 ASSERT(call->arguments()->length() == 1); |
10781 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 10781 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
10782 HValue* value = Pop(); | 10782 HValue* value = Pop(); |
10783 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); | 10783 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); |
10784 return ast_context()->ReturnInstruction(result, call->id()); | 10784 return ast_context()->ReturnInstruction(result, call->id()); |
10785 } | 10785 } |
10786 | 10786 |
10787 | 10787 |
| 10788 void HOptimizedGraphBuilder::GenerateMathExp(CallRuntime* call) { |
| 10789 ASSERT(call->arguments()->length() == 1); |
| 10790 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 10791 HValue* value = Pop(); |
| 10792 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathExp); |
| 10793 return ast_context()->ReturnInstruction(result, call->id()); |
| 10794 } |
| 10795 |
| 10796 |
10788 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { | 10797 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { |
10789 ASSERT(call->arguments()->length() == 1); | 10798 ASSERT(call->arguments()->length() == 1); |
10790 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 10799 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
10791 HValue* value = Pop(); | 10800 HValue* value = Pop(); |
10792 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value); | 10801 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value); |
10793 return ast_context()->ReturnInstruction(result, call->id()); | 10802 return ast_context()->ReturnInstruction(result, call->id()); |
10794 } | 10803 } |
10795 | 10804 |
10796 | 10805 |
10797 void HOptimizedGraphBuilder::GenerateFastAsciiArrayJoin(CallRuntime* call) { | 10806 void HOptimizedGraphBuilder::GenerateFastAsciiArrayJoin(CallRuntime* call) { |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11443 if (ShouldProduceTraceOutput()) { | 11452 if (ShouldProduceTraceOutput()) { |
11444 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11453 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
11445 } | 11454 } |
11446 | 11455 |
11447 #ifdef DEBUG | 11456 #ifdef DEBUG |
11448 graph_->Verify(false); // No full verify. | 11457 graph_->Verify(false); // No full verify. |
11449 #endif | 11458 #endif |
11450 } | 11459 } |
11451 | 11460 |
11452 } } // namespace v8::internal | 11461 } } // namespace v8::internal |
OLD | NEW |