| 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 11119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11130 DCHECK_EQ(Token::EQ, expr->op()); | 11130 DCHECK_EQ(Token::EQ, expr->op()); |
| 11131 Type* type = expr->combined_type()->Is(Type::None()) | 11131 Type* type = expr->combined_type()->Is(Type::None()) |
| 11132 ? Type::Any(zone()) : expr->combined_type(); | 11132 ? Type::Any(zone()) : expr->combined_type(); |
| 11133 HIfContinuation continuation; | 11133 HIfContinuation continuation; |
| 11134 BuildCompareNil(value, type, &continuation); | 11134 BuildCompareNil(value, type, &continuation); |
| 11135 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11135 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
| 11136 } | 11136 } |
| 11137 } | 11137 } |
| 11138 | 11138 |
| 11139 | 11139 |
| 11140 void HOptimizedGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { |
| 11141 return Bailout(kSpreadOperation); |
| 11142 } |
| 11143 |
| 11144 |
| 11140 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11145 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
| 11141 // If we share optimized code between different closures, the | 11146 // If we share optimized code between different closures, the |
| 11142 // this-function is not a constant, except inside an inlined body. | 11147 // this-function is not a constant, except inside an inlined body. |
| 11143 if (function_state()->outer() != NULL) { | 11148 if (function_state()->outer() != NULL) { |
| 11144 return New<HConstant>( | 11149 return New<HConstant>( |
| 11145 function_state()->compilation_info()->closure()); | 11150 function_state()->compilation_info()->closure()); |
| 11146 } else { | 11151 } else { |
| 11147 return New<HThisFunction>(); | 11152 return New<HThisFunction>(); |
| 11148 } | 11153 } |
| 11149 } | 11154 } |
| (...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13502 if (ShouldProduceTraceOutput()) { | 13507 if (ShouldProduceTraceOutput()) { |
| 13503 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13508 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13504 } | 13509 } |
| 13505 | 13510 |
| 13506 #ifdef DEBUG | 13511 #ifdef DEBUG |
| 13507 graph_->Verify(false); // No full verify. | 13512 graph_->Verify(false); // No full verify. |
| 13508 #endif | 13513 #endif |
| 13509 } | 13514 } |
| 13510 | 13515 |
| 13511 } } // namespace v8::internal | 13516 } } // namespace v8::internal |
| OLD | NEW |