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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 5230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5241 Compiler::BuildFunctionInfo(expr, current_info()->script(), top_info()); | 5241 Compiler::BuildFunctionInfo(expr, current_info()->script(), top_info()); |
5242 } | 5242 } |
5243 // We also have a stack overflow if the recursive compilation did. | 5243 // We also have a stack overflow if the recursive compilation did. |
5244 if (HasStackOverflow()) return; | 5244 if (HasStackOverflow()) return; |
5245 HFunctionLiteral* instr = | 5245 HFunctionLiteral* instr = |
5246 New<HFunctionLiteral>(shared_info, expr->pretenure()); | 5246 New<HFunctionLiteral>(shared_info, expr->pretenure()); |
5247 return ast_context()->ReturnInstruction(instr, expr->id()); | 5247 return ast_context()->ReturnInstruction(instr, expr->id()); |
5248 } | 5248 } |
5249 | 5249 |
5250 | 5250 |
| 5251 void HOptimizedGraphBuilder::VisitClassLiteral(ClassLiteral* lit) { |
| 5252 DCHECK(!HasStackOverflow()); |
| 5253 DCHECK(current_block() != NULL); |
| 5254 DCHECK(current_block()->HasPredecessor()); |
| 5255 return Bailout(kClassLiteral); |
| 5256 } |
| 5257 |
| 5258 |
5251 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( | 5259 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( |
5252 NativeFunctionLiteral* expr) { | 5260 NativeFunctionLiteral* expr) { |
5253 DCHECK(!HasStackOverflow()); | 5261 DCHECK(!HasStackOverflow()); |
5254 DCHECK(current_block() != NULL); | 5262 DCHECK(current_block() != NULL); |
5255 DCHECK(current_block()->HasPredecessor()); | 5263 DCHECK(current_block()->HasPredecessor()); |
5256 return Bailout(kNativeFunctionLiteral); | 5264 return Bailout(kNativeFunctionLiteral); |
5257 } | 5265 } |
5258 | 5266 |
5259 | 5267 |
5260 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { | 5268 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { |
(...skipping 7235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12496 if (ShouldProduceTraceOutput()) { | 12504 if (ShouldProduceTraceOutput()) { |
12497 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12505 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
12498 } | 12506 } |
12499 | 12507 |
12500 #ifdef DEBUG | 12508 #ifdef DEBUG |
12501 graph_->Verify(false); // No full verify. | 12509 graph_->Verify(false); // No full verify. |
12502 #endif | 12510 #endif |
12503 } | 12511 } |
12504 | 12512 |
12505 } } // namespace v8::internal | 12513 } } // namespace v8::internal |
OLD | NEW |