| 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/hydrogen.h" | 5 #include "src/hydrogen.h" | 
| 6 | 6 | 
| 7 #include <sstream> | 7 #include <sstream> | 
| 8 | 8 | 
| 9 #include "src/v8.h" | 9 #include "src/v8.h" | 
| 10 | 10 | 
| (...skipping 12026 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 12037 | 12037 | 
| 12038 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { | 12038 void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { | 
| 12039   DCHECK(call->arguments()->length() == 1); | 12039   DCHECK(call->arguments()->length() == 1); | 
| 12040   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12040   CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 
| 12041   HValue* value = Pop(); | 12041   HValue* value = Pop(); | 
| 12042   HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); | 12042   HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathSqrt); | 
| 12043   return ast_context()->ReturnInstruction(result, call->id()); | 12043   return ast_context()->ReturnInstruction(result, call->id()); | 
| 12044 } | 12044 } | 
| 12045 | 12045 | 
| 12046 | 12046 | 
|  | 12047 void HOptimizedGraphBuilder::GenerateLikely(CallRuntime* call) { | 
|  | 12048   DCHECK(call->arguments()->length() == 1); | 
|  | 12049   Visit(call->arguments()->at(0)); | 
|  | 12050 } | 
|  | 12051 | 
|  | 12052 | 
|  | 12053 void HOptimizedGraphBuilder::GenerateUnlikely(CallRuntime* call) { | 
|  | 12054   return GenerateLikely(call); | 
|  | 12055 } | 
|  | 12056 | 
|  | 12057 | 
| 12047 HValue* HOptimizedGraphBuilder::BuildOrderedHashTableHashToBucket( | 12058 HValue* HOptimizedGraphBuilder::BuildOrderedHashTableHashToBucket( | 
| 12048     HValue* hash, HValue* num_buckets) { | 12059     HValue* hash, HValue* num_buckets) { | 
| 12049   HValue* mask = AddUncasted<HSub>(num_buckets, graph()->GetConstant1()); | 12060   HValue* mask = AddUncasted<HSub>(num_buckets, graph()->GetConstant1()); | 
| 12050   mask->ChangeRepresentation(Representation::Integer32()); | 12061   mask->ChangeRepresentation(Representation::Integer32()); | 
| 12051   mask->ClearFlag(HValue::kCanOverflow); | 12062   mask->ClearFlag(HValue::kCanOverflow); | 
| 12052   return AddUncasted<HBitwise>(Token::BIT_AND, hash, mask); | 12063   return AddUncasted<HBitwise>(Token::BIT_AND, hash, mask); | 
| 12053 } | 12064 } | 
| 12054 | 12065 | 
| 12055 | 12066 | 
| 12056 template <typename CollectionType> | 12067 template <typename CollectionType> | 
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 13400   if (ShouldProduceTraceOutput()) { | 13411   if (ShouldProduceTraceOutput()) { | 
| 13401     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13412     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 
| 13402   } | 13413   } | 
| 13403 | 13414 | 
| 13404 #ifdef DEBUG | 13415 #ifdef DEBUG | 
| 13405   graph_->Verify(false);  // No full verify. | 13416   graph_->Verify(false);  // No full verify. | 
| 13406 #endif | 13417 #endif | 
| 13407 } | 13418 } | 
| 13408 | 13419 | 
| 13409 } }  // namespace v8::internal | 13420 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|