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 11054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11065 DCHECK_EQ(Token::EQ, expr->op()); | 11065 DCHECK_EQ(Token::EQ, expr->op()); |
11066 Type* type = expr->combined_type()->Is(Type::None()) | 11066 Type* type = expr->combined_type()->Is(Type::None()) |
11067 ? Type::Any(zone()) : expr->combined_type(); | 11067 ? Type::Any(zone()) : expr->combined_type(); |
11068 HIfContinuation continuation; | 11068 HIfContinuation continuation; |
11069 BuildCompareNil(value, type, &continuation); | 11069 BuildCompareNil(value, type, &continuation); |
11070 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11070 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
11071 } | 11071 } |
11072 } | 11072 } |
11073 | 11073 |
11074 | 11074 |
| 11075 void HOptimizedGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { |
| 11076 Visit(expr->expression()); |
| 11077 } |
| 11078 |
| 11079 |
11075 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11080 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
11076 // If we share optimized code between different closures, the | 11081 // If we share optimized code between different closures, the |
11077 // this-function is not a constant, except inside an inlined body. | 11082 // this-function is not a constant, except inside an inlined body. |
11078 if (function_state()->outer() != NULL) { | 11083 if (function_state()->outer() != NULL) { |
11079 return New<HConstant>( | 11084 return New<HConstant>( |
11080 function_state()->compilation_info()->closure()); | 11085 function_state()->compilation_info()->closure()); |
11081 } else { | 11086 } else { |
11082 return New<HThisFunction>(); | 11087 return New<HThisFunction>(); |
11083 } | 11088 } |
11084 } | 11089 } |
(...skipping 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13443 if (ShouldProduceTraceOutput()) { | 13448 if (ShouldProduceTraceOutput()) { |
13444 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13449 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13445 } | 13450 } |
13446 | 13451 |
13447 #ifdef DEBUG | 13452 #ifdef DEBUG |
13448 graph_->Verify(false); // No full verify. | 13453 graph_->Verify(false); // No full verify. |
13449 #endif | 13454 #endif |
13450 } | 13455 } |
13451 | 13456 |
13452 } } // namespace v8::internal | 13457 } } // namespace v8::internal |
OLD | NEW |