| 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 11038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11049 DCHECK_EQ(Token::EQ, expr->op()); | 11049 DCHECK_EQ(Token::EQ, expr->op()); |
| 11050 Type* type = expr->combined_type()->Is(Type::None()) | 11050 Type* type = expr->combined_type()->Is(Type::None()) |
| 11051 ? Type::Any(zone()) : expr->combined_type(); | 11051 ? Type::Any(zone()) : expr->combined_type(); |
| 11052 HIfContinuation continuation; | 11052 HIfContinuation continuation; |
| 11053 BuildCompareNil(value, type, &continuation); | 11053 BuildCompareNil(value, type, &continuation); |
| 11054 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11054 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
| 11055 } | 11055 } |
| 11056 } | 11056 } |
| 11057 | 11057 |
| 11058 | 11058 |
| 11059 void HOptimizedGraphBuilder::VisitSpreadOperation(SpreadOperation* node) { |
| 11060 UNREACHABLE(); |
| 11061 } |
| 11062 |
| 11063 |
| 11059 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11064 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
| 11060 // If we share optimized code between different closures, the | 11065 // If we share optimized code between different closures, the |
| 11061 // this-function is not a constant, except inside an inlined body. | 11066 // this-function is not a constant, except inside an inlined body. |
| 11062 if (function_state()->outer() != NULL) { | 11067 if (function_state()->outer() != NULL) { |
| 11063 return New<HConstant>( | 11068 return New<HConstant>( |
| 11064 function_state()->compilation_info()->closure()); | 11069 function_state()->compilation_info()->closure()); |
| 11065 } else { | 11070 } else { |
| 11066 return New<HThisFunction>(); | 11071 return New<HThisFunction>(); |
| 11067 } | 11072 } |
| 11068 } | 11073 } |
| (...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13422 if (ShouldProduceTraceOutput()) { | 13427 if (ShouldProduceTraceOutput()) { |
| 13423 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13428 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13424 } | 13429 } |
| 13425 | 13430 |
| 13426 #ifdef DEBUG | 13431 #ifdef DEBUG |
| 13427 graph_->Verify(false); // No full verify. | 13432 graph_->Verify(false); // No full verify. |
| 13428 #endif | 13433 #endif |
| 13429 } | 13434 } |
| 13430 | 13435 |
| 13431 } } // namespace v8::internal | 13436 } } // namespace v8::internal |
| OLD | NEW |