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 <memory> | 7 #include <memory> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/allocation-site-scopes.h" | 10 #include "src/allocation-site-scopes.h" |
(...skipping 11119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11130 return ast_context()->ReturnControl(instr, expr->id()); | 11130 return ast_context()->ReturnControl(instr, expr->id()); |
11131 } | 11131 } |
11132 | 11132 |
11133 namespace { | 11133 namespace { |
11134 | 11134 |
11135 bool IsLiteralCompareStrict(Isolate* isolate, HValue* left, Token::Value op, | 11135 bool IsLiteralCompareStrict(Isolate* isolate, HValue* left, Token::Value op, |
11136 HValue* right) { | 11136 HValue* right) { |
11137 return op == Token::EQ_STRICT && | 11137 return op == Token::EQ_STRICT && |
11138 ((left->IsConstant() && | 11138 ((left->IsConstant() && |
11139 !HConstant::cast(left)->handle(isolate)->IsNumber() && | 11139 !HConstant::cast(left)->handle(isolate)->IsNumber() && |
| 11140 !HConstant::cast(left)->handle(isolate)->IsSimd128Value() && |
11140 !HConstant::cast(left)->handle(isolate)->IsString()) || | 11141 !HConstant::cast(left)->handle(isolate)->IsString()) || |
11141 (right->IsConstant() && | 11142 (right->IsConstant() && |
11142 !HConstant::cast(right)->handle(isolate)->IsNumber() && | 11143 !HConstant::cast(right)->handle(isolate)->IsNumber() && |
| 11144 !HConstant::cast(right)->handle(isolate)->IsSimd128Value() && |
11143 !HConstant::cast(right)->handle(isolate)->IsString())); | 11145 !HConstant::cast(right)->handle(isolate)->IsString())); |
11144 } | 11146 } |
11145 | 11147 |
11146 } // namespace | 11148 } // namespace |
11147 | 11149 |
11148 void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { | 11150 void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
11149 DCHECK(!HasStackOverflow()); | 11151 DCHECK(!HasStackOverflow()); |
11150 DCHECK(current_block() != NULL); | 11152 DCHECK(current_block() != NULL); |
11151 DCHECK(current_block()->HasPredecessor()); | 11153 DCHECK(current_block()->HasPredecessor()); |
11152 | 11154 |
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13023 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13024 } | 13026 } |
13025 | 13027 |
13026 #ifdef DEBUG | 13028 #ifdef DEBUG |
13027 graph_->Verify(false); // No full verify. | 13029 graph_->Verify(false); // No full verify. |
13028 #endif | 13030 #endif |
13029 } | 13031 } |
13030 | 13032 |
13031 } // namespace internal | 13033 } // namespace internal |
13032 } // namespace v8 | 13034 } // namespace v8 |
OLD | NEW |