Chromium Code Reviews| 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 11033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11044 DCHECK_EQ(Token::EQ, expr->op()); | 11044 DCHECK_EQ(Token::EQ, expr->op()); |
| 11045 Type* type = expr->combined_type()->Is(Type::None()) | 11045 Type* type = expr->combined_type()->Is(Type::None()) |
| 11046 ? Type::Any(zone()) : expr->combined_type(); | 11046 ? Type::Any(zone()) : expr->combined_type(); |
| 11047 HIfContinuation continuation; | 11047 HIfContinuation continuation; |
| 11048 BuildCompareNil(value, type, &continuation); | 11048 BuildCompareNil(value, type, &continuation); |
| 11049 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11049 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
| 11050 } | 11050 } |
| 11051 } | 11051 } |
| 11052 | 11052 |
| 11053 | 11053 |
| 11054 void HOptimizedGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { | |
| 11055 Visit(expr->expression()); | |
|
Dmitry Lomov (no reviews)
2015/03/31 10:09:42
Bailout instead of visiting.
| |
| 11056 } | |
| 11057 | |
| 11058 | |
| 11054 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11059 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
| 11055 // If we share optimized code between different closures, the | 11060 // If we share optimized code between different closures, the |
| 11056 // this-function is not a constant, except inside an inlined body. | 11061 // this-function is not a constant, except inside an inlined body. |
| 11057 if (function_state()->outer() != NULL) { | 11062 if (function_state()->outer() != NULL) { |
| 11058 return New<HConstant>( | 11063 return New<HConstant>( |
| 11059 function_state()->compilation_info()->closure()); | 11064 function_state()->compilation_info()->closure()); |
| 11060 } else { | 11065 } else { |
| 11061 return New<HThisFunction>(); | 11066 return New<HThisFunction>(); |
| 11062 } | 11067 } |
| 11063 } | 11068 } |
| (...skipping 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 13423 if (ShouldProduceTraceOutput()) { | 13428 if (ShouldProduceTraceOutput()) { |
| 13424 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13429 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13425 } | 13430 } |
| 13426 | 13431 |
| 13427 #ifdef DEBUG | 13432 #ifdef DEBUG |
| 13428 graph_->Verify(false); // No full verify. | 13433 graph_->Verify(false); // No full verify. |
| 13429 #endif | 13434 #endif |
| 13430 } | 13435 } |
| 13431 | 13436 |
| 13432 } } // namespace v8::internal | 13437 } } // namespace v8::internal |
| OLD | NEW |