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

Side by Side Diff: src/hydrogen.cc

Issue 214593005: Revert "Clean up runtime functions for Maths." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/harmony-math.js ('k') | src/ia32/code-stubs-ia32.cc » ('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 // 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
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
10797 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { 10788 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) {
10798 ASSERT(call->arguments()->length() == 1); 10789 ASSERT(call->arguments()->length() == 1);
10799 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 10790 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
10800 HValue* value = Pop(); 10791 HValue* value = Pop();
10801 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value); 10792 HGetCachedArrayIndex* result = New<HGetCachedArrayIndex>(value);
10802 return ast_context()->ReturnInstruction(result, call->id()); 10793 return ast_context()->ReturnInstruction(result, call->id());
10803 } 10794 }
10804 10795
10805 10796
10806 void HOptimizedGraphBuilder::GenerateFastAsciiArrayJoin(CallRuntime* call) { 10797 void HOptimizedGraphBuilder::GenerateFastAsciiArrayJoin(CallRuntime* call) {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
11452 if (ShouldProduceTraceOutput()) { 11443 if (ShouldProduceTraceOutput()) {
11453 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11444 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11454 } 11445 }
11455 11446
11456 #ifdef DEBUG 11447 #ifdef DEBUG
11457 graph_->Verify(false); // No full verify. 11448 graph_->Verify(false); // No full verify.
11458 #endif 11449 #endif
11459 } 11450 }
11460 11451
11461 } } // namespace v8::internal 11452 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/harmony-math.js ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698