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

Side by Side Diff: src/hydrogen.cc

Issue 280243002: Avoid name clashes of builtins and runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/math.js » ('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 // 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 11104 matching lines...) Expand 10 before | Expand all | Expand 10 after
11115 11115
11116 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { 11116 void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) {
11117 ASSERT(call->arguments()->length() == 1); 11117 ASSERT(call->arguments()->length() == 1);
11118 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 11118 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11119 HValue* value = Pop(); 11119 HValue* value = Pop();
11120 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); 11120 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog);
11121 return ast_context()->ReturnInstruction(result, call->id()); 11121 return ast_context()->ReturnInstruction(result, call->id());
11122 } 11122 }
11123 11123
11124 11124
11125 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { 11125 void HOptimizedGraphBuilder::GenerateMathSqrtRT(CallRuntime* call) {
11126 ASSERT(call->arguments()->length() == 1); 11126 ASSERT(call->arguments()->length() == 1);
11127 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 11127 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11128 HValue* value = Pop(); 11128 HValue* value = Pop();
11129 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); 11129 HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt);
11130 return ast_context()->ReturnInstruction(result, call->id()); 11130 return ast_context()->ReturnInstruction(result, call->id());
11131 } 11131 }
11132 11132
11133 11133
11134 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { 11134 void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) {
11135 ASSERT(call->arguments()->length() == 1); 11135 ASSERT(call->arguments()->length() == 1);
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
11797 if (ShouldProduceTraceOutput()) { 11797 if (ShouldProduceTraceOutput()) {
11798 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11798 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11799 } 11799 }
11800 11800
11801 #ifdef DEBUG 11801 #ifdef DEBUG
11802 graph_->Verify(false); // No full verify. 11802 graph_->Verify(false); // No full verify.
11803 #endif 11803 #endif
11804 } 11804 }
11805 11805
11806 } } // namespace v8::internal 11806 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/harmony-math.js ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698