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 11010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11021 DCHECK_EQ(Token::EQ, expr->op()); | 11021 DCHECK_EQ(Token::EQ, expr->op()); |
11022 Type* type = expr->combined_type()->Is(Type::None()) | 11022 Type* type = expr->combined_type()->Is(Type::None()) |
11023 ? Type::Any(zone()) : expr->combined_type(); | 11023 ? Type::Any(zone()) : expr->combined_type(); |
11024 HIfContinuation continuation; | 11024 HIfContinuation continuation; |
11025 BuildCompareNil(value, type, &continuation); | 11025 BuildCompareNil(value, type, &continuation); |
11026 return ast_context()->ReturnContinuation(&continuation, expr->id()); | 11026 return ast_context()->ReturnContinuation(&continuation, expr->id()); |
11027 } | 11027 } |
11028 } | 11028 } |
11029 | 11029 |
11030 | 11030 |
| 11031 void HOptimizedGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } |
| 11032 |
| 11033 |
11031 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { | 11034 HInstruction* HOptimizedGraphBuilder::BuildThisFunction() { |
11032 // If we share optimized code between different closures, the | 11035 // If we share optimized code between different closures, the |
11033 // this-function is not a constant, except inside an inlined body. | 11036 // this-function is not a constant, except inside an inlined body. |
11034 if (function_state()->outer() != NULL) { | 11037 if (function_state()->outer() != NULL) { |
11035 return New<HConstant>( | 11038 return New<HConstant>( |
11036 function_state()->compilation_info()->closure()); | 11039 function_state()->compilation_info()->closure()); |
11037 } else { | 11040 } else { |
11038 return New<HThisFunction>(); | 11041 return New<HThisFunction>(); |
11039 } | 11042 } |
11040 } | 11043 } |
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13411 if (ShouldProduceTraceOutput()) { | 13414 if (ShouldProduceTraceOutput()) { |
13412 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13415 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13413 } | 13416 } |
13414 | 13417 |
13415 #ifdef DEBUG | 13418 #ifdef DEBUG |
13416 graph_->Verify(false); // No full verify. | 13419 graph_->Verify(false); // No full verify. |
13417 #endif | 13420 #endif |
13418 } | 13421 } |
13419 | 13422 |
13420 } } // namespace v8::internal | 13423 } } // namespace v8::internal |
OLD | NEW |