| OLD | NEW | 
|      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 "src/crankshaft/hydrogen.h" |      5 #include "src/crankshaft/hydrogen.h" | 
|      6  |      6  | 
|      7 #include <sstream> |      7 #include <sstream> | 
|      8  |      8  | 
|      9 #include "src/allocation-site-scopes.h" |      9 #include "src/allocation-site-scopes.h" | 
|     10 #include "src/ast-numbering.h" |     10 #include "src/ast-numbering.h" | 
| (...skipping 12725 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  12736  |  12736  | 
|  12737 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { |  12737 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { | 
|  12738   DCHECK(call->arguments()->length() == 1); |  12738   DCHECK(call->arguments()->length() == 1); | 
|  12739   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |  12739   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 
|  12740   HValue* value = Pop(); |  12740   HValue* value = Pop(); | 
|  12741   HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); |  12741   HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); | 
|  12742   return ast_context()->ReturnInstruction(result, call->id()); |  12742   return ast_context()->ReturnInstruction(result, call->id()); | 
|  12743 } |  12743 } | 
|  12744  |  12744  | 
|  12745  |  12745  | 
|  12746 void HOptimizedGraphBuilder::GenerateLikely(CallRuntime* call) { |  | 
|  12747   DCHECK(call->arguments()->length() == 1); |  | 
|  12748   Visit(call->arguments()->at(0)); |  | 
|  12749 } |  | 
|  12750  |  | 
|  12751  |  | 
|  12752 void HOptimizedGraphBuilder::GenerateUnlikely(CallRuntime* call) { |  | 
|  12753   return GenerateLikely(call); |  | 
|  12754 } |  | 
|  12755  |  | 
|  12756  |  | 
|  12757 void HOptimizedGraphBuilder::GenerateHasInPrototypeChain(CallRuntime* call) { |  12746 void HOptimizedGraphBuilder::GenerateHasInPrototypeChain(CallRuntime* call) { | 
|  12758   DCHECK_EQ(2, call->arguments()->length()); |  12747   DCHECK_EQ(2, call->arguments()->length()); | 
|  12759   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |  12748   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 
|  12760   CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); |  12749   CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); | 
|  12761   HValue* prototype = Pop(); |  12750   HValue* prototype = Pop(); | 
|  12762   HValue* object = Pop(); |  12751   HValue* object = Pop(); | 
|  12763   HHasInPrototypeChainAndBranch* result = |  12752   HHasInPrototypeChainAndBranch* result = | 
|  12764       New<HHasInPrototypeChainAndBranch>(object, prototype); |  12753       New<HHasInPrototypeChainAndBranch>(object, prototype); | 
|  12765   return ast_context()->ReturnControl(result, call->id()); |  12754   return ast_context()->ReturnControl(result, call->id()); | 
|  12766 } |  12755 } | 
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  13616     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |  13605     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 
|  13617   } |  13606   } | 
|  13618  |  13607  | 
|  13619 #ifdef DEBUG |  13608 #ifdef DEBUG | 
|  13620   graph_->Verify(false);  // No full verify. |  13609   graph_->Verify(false);  // No full verify. | 
|  13621 #endif |  13610 #endif | 
|  13622 } |  13611 } | 
|  13623  |  13612  | 
|  13624 }  // namespace internal |  13613 }  // namespace internal | 
|  13625 }  // namespace v8 |  13614 }  // namespace v8 | 
| OLD | NEW |