| 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 12164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12175 FIRST_JS_RECEIVER_TYPE, | 12175 FIRST_JS_RECEIVER_TYPE, |
| 12176 LAST_JS_RECEIVER_TYPE); | 12176 LAST_JS_RECEIVER_TYPE); |
| 12177 return ast_context()->ReturnControl(result, call->id()); | 12177 return ast_context()->ReturnControl(result, call->id()); |
| 12178 } | 12178 } |
| 12179 | 12179 |
| 12180 | 12180 |
| 12181 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { | 12181 void HOptimizedGraphBuilder::GenerateIsFunction(CallRuntime* call) { |
| 12182 DCHECK(call->arguments()->length() == 1); | 12182 DCHECK(call->arguments()->length() == 1); |
| 12183 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12183 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 12184 HValue* value = Pop(); | 12184 HValue* value = Pop(); |
| 12185 HHasInstanceTypeAndBranch* result = | 12185 HHasInstanceTypeAndBranch* result = New<HHasInstanceTypeAndBranch>( |
| 12186 New<HHasInstanceTypeAndBranch>(value, JS_FUNCTION_TYPE); | 12186 value, FIRST_FUNCTION_TYPE, LAST_FUNCTION_TYPE); |
| 12187 return ast_context()->ReturnControl(result, call->id()); | 12187 return ast_context()->ReturnControl(result, call->id()); |
| 12188 } | 12188 } |
| 12189 | 12189 |
| 12190 | 12190 |
| 12191 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) { | 12191 void HOptimizedGraphBuilder::GenerateIsMinusZero(CallRuntime* call) { |
| 12192 DCHECK(call->arguments()->length() == 1); | 12192 DCHECK(call->arguments()->length() == 1); |
| 12193 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12193 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 12194 HValue* value = Pop(); | 12194 HValue* value = Pop(); |
| 12195 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value); | 12195 HCompareMinusZeroAndBranch* result = New<HCompareMinusZeroAndBranch>(value); |
| 12196 return ast_context()->ReturnControl(result, call->id()); | 12196 return ast_context()->ReturnControl(result, call->id()); |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13620 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13620 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13621 } | 13621 } |
| 13622 | 13622 |
| 13623 #ifdef DEBUG | 13623 #ifdef DEBUG |
| 13624 graph_->Verify(false); // No full verify. | 13624 graph_->Verify(false); // No full verify. |
| 13625 #endif | 13625 #endif |
| 13626 } | 13626 } |
| 13627 | 13627 |
| 13628 } // namespace internal | 13628 } // namespace internal |
| 13629 } // namespace v8 | 13629 } // namespace v8 |
| OLD | NEW |