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 12077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12088 if_fast_packed.Or(); | 12088 if_fast_packed.Or(); |
12089 if_fast_packed.If<HCompareNumericAndBranch>( | 12089 if_fast_packed.If<HCompareNumericAndBranch>( |
12090 elements_kind, Add<HConstant>(FAST_DOUBLE_ELEMENTS), Token::EQ); | 12090 elements_kind, Add<HConstant>(FAST_DOUBLE_ELEMENTS), Token::EQ); |
12091 if_fast_packed.JoinContinuation(&continuation); | 12091 if_fast_packed.JoinContinuation(&continuation); |
12092 } | 12092 } |
12093 if_not_smi.JoinContinuation(&continuation); | 12093 if_not_smi.JoinContinuation(&continuation); |
12094 return ast_context()->ReturnContinuation(&continuation, call->id()); | 12094 return ast_context()->ReturnContinuation(&continuation, call->id()); |
12095 } | 12095 } |
12096 | 12096 |
12097 | 12097 |
12098 void HOptimizedGraphBuilder::GenerateIsUndetectableObject(CallRuntime* call) { | |
12099 DCHECK(call->arguments()->length() == 1); | |
12100 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | |
12101 HValue* value = Pop(); | |
12102 HIsUndetectableAndBranch* result = New<HIsUndetectableAndBranch>(value); | |
12103 return ast_context()->ReturnControl(result, call->id()); | |
12104 } | |
12105 | |
12106 | |
12107 // Support for construct call checks. | 12098 // Support for construct call checks. |
12108 void HOptimizedGraphBuilder::GenerateIsConstructCall(CallRuntime* call) { | 12099 void HOptimizedGraphBuilder::GenerateIsConstructCall(CallRuntime* call) { |
12109 DCHECK(call->arguments()->length() == 0); | 12100 DCHECK(call->arguments()->length() == 0); |
12110 if (function_state()->outer() != NULL) { | 12101 if (function_state()->outer() != NULL) { |
12111 // We are generating graph for inlined function. | 12102 // We are generating graph for inlined function. |
12112 HValue* value = function_state()->inlining_kind() == CONSTRUCT_CALL_RETURN | 12103 HValue* value = function_state()->inlining_kind() == CONSTRUCT_CALL_RETURN |
12113 ? graph()->GetConstantTrue() | 12104 ? graph()->GetConstantTrue() |
12114 : graph()->GetConstantFalse(); | 12105 : graph()->GetConstantFalse(); |
12115 return ast_context()->ReturnValue(value); | 12106 return ast_context()->ReturnValue(value); |
12116 } else { | 12107 } else { |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13441 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13432 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13442 } | 13433 } |
13443 | 13434 |
13444 #ifdef DEBUG | 13435 #ifdef DEBUG |
13445 graph_->Verify(false); // No full verify. | 13436 graph_->Verify(false); // No full verify. |
13446 #endif | 13437 #endif |
13447 } | 13438 } |
13448 | 13439 |
13449 } // namespace internal | 13440 } // namespace internal |
13450 } // namespace v8 | 13441 } // namespace v8 |
OLD | NEW |