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 12119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12130 // Support for types. | 12130 // Support for types. |
12131 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) { | 12131 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) { |
12132 DCHECK(call->arguments()->length() == 1); | 12132 DCHECK(call->arguments()->length() == 1); |
12133 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12133 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
12134 HValue* value = Pop(); | 12134 HValue* value = Pop(); |
12135 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value); | 12135 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value); |
12136 return ast_context()->ReturnControl(result, call->id()); | 12136 return ast_context()->ReturnControl(result, call->id()); |
12137 } | 12137 } |
12138 | 12138 |
12139 | 12139 |
12140 void HOptimizedGraphBuilder::GenerateIsSpecObject(CallRuntime* call) { | 12140 void HOptimizedGraphBuilder::GenerateIsJSReceiver(CallRuntime* call) { |
12141 DCHECK(call->arguments()->length() == 1); | 12141 DCHECK(call->arguments()->length() == 1); |
12142 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 12142 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
12143 HValue* value = Pop(); | 12143 HValue* value = Pop(); |
12144 HHasInstanceTypeAndBranch* result = | 12144 HHasInstanceTypeAndBranch* result = |
12145 New<HHasInstanceTypeAndBranch>(value, | 12145 New<HHasInstanceTypeAndBranch>(value, |
12146 FIRST_JS_RECEIVER_TYPE, | 12146 FIRST_JS_RECEIVER_TYPE, |
12147 LAST_JS_RECEIVER_TYPE); | 12147 LAST_JS_RECEIVER_TYPE); |
12148 return ast_context()->ReturnControl(result, call->id()); | 12148 return ast_context()->ReturnControl(result, call->id()); |
12149 } | 12149 } |
12150 | 12150 |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13619 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13619 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13620 } | 13620 } |
13621 | 13621 |
13622 #ifdef DEBUG | 13622 #ifdef DEBUG |
13623 graph_->Verify(false); // No full verify. | 13623 graph_->Verify(false); // No full verify. |
13624 #endif | 13624 #endif |
13625 } | 13625 } |
13626 | 13626 |
13627 } // namespace internal | 13627 } // namespace internal |
13628 } // namespace v8 | 13628 } // namespace v8 |
OLD | NEW |