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 11740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11751 void HOptimizedGraphBuilder::GenerateIsArray(CallRuntime* call) { | 11751 void HOptimizedGraphBuilder::GenerateIsArray(CallRuntime* call) { |
11752 DCHECK(call->arguments()->length() == 1); | 11752 DCHECK(call->arguments()->length() == 1); |
11753 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11753 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
11754 HValue* value = Pop(); | 11754 HValue* value = Pop(); |
11755 HHasInstanceTypeAndBranch* result = | 11755 HHasInstanceTypeAndBranch* result = |
11756 New<HHasInstanceTypeAndBranch>(value, JS_ARRAY_TYPE); | 11756 New<HHasInstanceTypeAndBranch>(value, JS_ARRAY_TYPE); |
11757 return ast_context()->ReturnControl(result, call->id()); | 11757 return ast_context()->ReturnControl(result, call->id()); |
11758 } | 11758 } |
11759 | 11759 |
11760 | 11760 |
| 11761 void HOptimizedGraphBuilder::GenerateIsTypedArray(CallRuntime* call) { |
| 11762 DCHECK(call->arguments()->length() == 1); |
| 11763 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
| 11764 HValue* value = Pop(); |
| 11765 HHasInstanceTypeAndBranch* result = |
| 11766 New<HHasInstanceTypeAndBranch>(value, JS_TYPED_ARRAY_TYPE); |
| 11767 return ast_context()->ReturnControl(result, call->id()); |
| 11768 } |
| 11769 |
| 11770 |
11761 void HOptimizedGraphBuilder::GenerateIsRegExp(CallRuntime* call) { | 11771 void HOptimizedGraphBuilder::GenerateIsRegExp(CallRuntime* call) { |
11762 DCHECK(call->arguments()->length() == 1); | 11772 DCHECK(call->arguments()->length() == 1); |
11763 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); | 11773 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
11764 HValue* value = Pop(); | 11774 HValue* value = Pop(); |
11765 HHasInstanceTypeAndBranch* result = | 11775 HHasInstanceTypeAndBranch* result = |
11766 New<HHasInstanceTypeAndBranch>(value, JS_REGEXP_TYPE); | 11776 New<HHasInstanceTypeAndBranch>(value, JS_REGEXP_TYPE); |
11767 return ast_context()->ReturnControl(result, call->id()); | 11777 return ast_context()->ReturnControl(result, call->id()); |
11768 } | 11778 } |
11769 | 11779 |
11770 | 11780 |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13174 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13184 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13175 } | 13185 } |
13176 | 13186 |
13177 #ifdef DEBUG | 13187 #ifdef DEBUG |
13178 graph_->Verify(false); // No full verify. | 13188 graph_->Verify(false); // No full verify. |
13179 #endif | 13189 #endif |
13180 } | 13190 } |
13181 | 13191 |
13182 } // namespace internal | 13192 } // namespace internal |
13183 } // namespace v8 | 13193 } // namespace v8 |
OLD | NEW |