| 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/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" |
| (...skipping 12150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12161 FIRST_JS_RECEIVER_TYPE, | 12161 FIRST_JS_RECEIVER_TYPE, |
| 12162 LAST_JS_RECEIVER_TYPE); | 12162 LAST_JS_RECEIVER_TYPE); |
| 12163 return ast_context()->ReturnControl(result, call->id()); | 12163 return ast_context()->ReturnControl(result, call->id()); |
| 12164 } | 12164 } |
| 12165 | 12165 |
| 12166 | 12166 |
| 12167 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { | 12167 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { |
| 12168 DCHECK(call->arguments()->length() == 1); | 12168 DCHECK(call->arguments()->length() == 1); |
| 12169 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12169 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 12170 HValue* value = Pop(); | 12170 HValue* value = Pop(); |
| 12171 HHasInstanceTypeAndBranch* result = | 12171 HHasInstanceTypeAndBranch* result = New<HHasInstanceTypeAndBranch>( |
| 12172 New<HHasInstanceTypeAndBranch>(value, JS_FUNCTION_TYPE); | 12172 value, FIRST_FUNCTION_TYPE, LAST_FUNCTION_TYPE); |
| 12173 return ast_context()->ReturnControl(result, call->id()); | 12173 return ast_context()->ReturnControl(result, call->id()); |
| 12174 } | 12174 } |
| 12175 | 12175 |
| 12176 | 12176 |
| 12177 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) { | 12177 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) { |
| 12178 DCHECK(call->arguments()->length() == 1); | 12178 DCHECK(call->arguments()->length() == 1); |
| 12179 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12179 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 12180 HValue* value = Pop(); | 12180 HValue* value = Pop(); |
| 12181 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value); | 12181 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value); |
| 12182 return ast_context()->ReturnControl(result, call->id()); | 12182 return ast_context()->ReturnControl(result, call->id()); |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13606 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13606 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13607 } | 13607 } |
| 13608 | 13608 |
| 13609 #ifdef DEBUG | 13609 #ifdef DEBUG |
| 13610 graph_->Verify(false); // No full verify. | 13610 graph_->Verify(false); // No full verify. |
| 13611 #endif | 13611 #endif |
| 13612 } | 13612 } |
| 13613 | 13613 |
| 13614 } // namespace internal | 13614 } // namespace internal |
| 13615 } // namespace v8 | 13615 } // namespace v8 |
| OLD | NEW |