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

Side by Side Diff: src/hydrogen.cc

Issue 9359036: Merged r10702 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 10 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 | « no previous file | src/version.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5155 matching lines...) Expand 10 before | Expand all | Expand 10 after
5166 delete target_state; 5166 delete target_state;
5167 return true; 5167 return true;
5168 } 5168 }
5169 5169
5170 5170
5171 bool HGraphBuilder::TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra) { 5171 bool HGraphBuilder::TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra) {
5172 if (!expr->target()->shared()->HasBuiltinFunctionId()) return false; 5172 if (!expr->target()->shared()->HasBuiltinFunctionId()) return false;
5173 BuiltinFunctionId id = expr->target()->shared()->builtin_function_id(); 5173 BuiltinFunctionId id = expr->target()->shared()->builtin_function_id();
5174 switch (id) { 5174 switch (id) {
5175 case kMathRound: 5175 case kMathRound:
5176 case kMathFloor:
5177 case kMathAbs: 5176 case kMathAbs:
5178 case kMathSqrt: 5177 case kMathSqrt:
5179 case kMathLog: 5178 case kMathLog:
5180 case kMathSin: 5179 case kMathSin:
5181 case kMathCos: 5180 case kMathCos:
5182 if (expr->arguments()->length() == 1) { 5181 if (expr->arguments()->length() == 1) {
5183 HValue* argument = Pop(); 5182 HValue* argument = Pop();
5184 HValue* context = environment()->LookupContext(); 5183 HValue* context = environment()->LookupContext();
5185 Drop(1); // Receiver. 5184 Drop(1); // Receiver.
5186 HUnaryMathOperation* op = 5185 HUnaryMathOperation* op =
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
7653 } 7652 }
7654 } 7653 }
7655 7654
7656 #ifdef DEBUG 7655 #ifdef DEBUG
7657 if (graph_ != NULL) graph_->Verify(false); // No full verify. 7656 if (graph_ != NULL) graph_->Verify(false); // No full verify.
7658 if (allocator_ != NULL) allocator_->Verify(); 7657 if (allocator_ != NULL) allocator_->Verify();
7659 #endif 7658 #endif
7660 } 7659 }
7661 7660
7662 } } // namespace v8::internal 7661 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698