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

Side by Side Diff: src/hydrogen.cc

Issue 113343003: Remove the last remnants of the TranscendentalCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years 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/heap-inl.h ('k') | src/hydrogen-instructions.h » ('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 10128 matching lines...) Expand 10 before | Expand all | Expand 10 after
10139 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 10139 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
10140 CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); 10140 CHECK_ALIVE(VisitForValue(call->arguments()->at(1)));
10141 HValue* right = Pop(); 10141 HValue* right = Pop();
10142 HValue* left = Pop(); 10142 HValue* left = Pop();
10143 HInstruction* result = NewUncasted<HPower>(left, right); 10143 HInstruction* result = NewUncasted<HPower>(left, right);
10144 return ast_context()->ReturnInstruction(result, call->id()); 10144 return ast_context()->ReturnInstruction(result, call->id());
10145 } 10145 }
10146 10146
10147 10147
10148 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { 10148 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) {
10149 ASSERT_EQ(1, call->arguments()->length()); 10149 ASSERT(call->arguments()->length() == 1);
10150 CHECK_ALIVE(VisitArgumentList(call->arguments())); 10150 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
10151 HCallStub* result = New<HCallStub>(CodeStub::TranscendentalCache, 1); 10151 HValue* value = Pop();
10152 result->set_transcendental_type(TranscendentalCache::LOG); 10152 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog);
10153 Drop(1);
10154 return ast_context()->ReturnInstruction(result, call->id()); 10153 return ast_context()->ReturnInstruction(result, call->id());
10155 } 10154 }
10156 10155
10157 10156
10158 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { 10157 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) {
10159 ASSERT(call->arguments()->length() == 1); 10158 ASSERT(call->arguments()->length() == 1);
10160 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 10159 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
10161 HValue* value = Pop(); 10160 HValue* value = Pop();
10162 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); 10161 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt);
10163 return ast_context()->ReturnInstruction(result, call->id()); 10162 return ast_context()->ReturnInstruction(result, call->id());
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
10813 if (ShouldProduceTraceOutput()) { 10812 if (ShouldProduceTraceOutput()) {
10814 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 10813 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
10815 } 10814 }
10816 10815
10817 #ifdef DEBUG 10816 #ifdef DEBUG
10818 graph_->Verify(false); // No full verify. 10817 graph_->Verify(false); // No full verify.
10819 #endif 10818 #endif
10820 } 10819 }
10821 10820
10822 } } // namespace v8::internal 10821 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698