| 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() && | |
| 11141 !HConstant::cast(left)->handle(isolate)->IsString()) || | 11140 !HConstant::cast(left)->handle(isolate)->IsString()) || |
| 11142 (right->IsConstant() && | 11141 (right->IsConstant() && |
| 11143 !HConstant::cast(right)->handle(isolate)->IsNumber() && | 11142 !HConstant::cast(right)->handle(isolate)->IsNumber() && |
| 11144 !HConstant::cast(right)->handle(isolate)->IsSimd128Value() && | |
| 11145 !HConstant::cast(right)->handle(isolate)->IsString())); | 11143 !HConstant::cast(right)->handle(isolate)->IsString())); |
| 11146 } | 11144 } |
| 11147 | 11145 |
| 11148 } // namespace | 11146 } // namespace |
| 11149 | 11147 |
| 11150 void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { | 11148 void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
| 11151 DCHECK(!HasStackOverflow()); | 11149 DCHECK(!HasStackOverflow()); |
| 11152 DCHECK(current_block() != NULL); | 11150 DCHECK(current_block() != NULL); |
| 11153 DCHECK(current_block()->HasPredecessor()); | 11151 DCHECK(current_block()->HasPredecessor()); |
| 11154 | 11152 |
| (...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13025 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13023 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13026 } | 13024 } |
| 13027 | 13025 |
| 13028 #ifdef DEBUG | 13026 #ifdef DEBUG |
| 13029 graph_->Verify(false); // No full verify. | 13027 graph_->Verify(false); // No full verify. |
| 13030 #endif | 13028 #endif |
| 13031 } | 13029 } |
| 13032 | 13030 |
| 13033 } // namespace internal | 13031 } // namespace internal |
| 13034 } // namespace v8 | 13032 } // namespace v8 |
| OLD | NEW |