Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/hydrogen.cc

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 5224 matching lines...) Expand 10 before | Expand all | Expand 10 after
5235 Compiler::BuildFunctionInfo(expr, current_info()->script(), top_info()); 5235 Compiler::BuildFunctionInfo(expr, current_info()->script(), top_info());
5236 } 5236 }
5237 // We also have a stack overflow if the recursive compilation did. 5237 // We also have a stack overflow if the recursive compilation did.
5238 if (HasStackOverflow()) return; 5238 if (HasStackOverflow()) return;
5239 HFunctionLiteral* instr = 5239 HFunctionLiteral* instr =
5240 New<HFunctionLiteral>(shared_info, expr->pretenure()); 5240 New<HFunctionLiteral>(shared_info, expr->pretenure());
5241 return ast_context()->ReturnInstruction(instr, expr->id()); 5241 return ast_context()->ReturnInstruction(instr, expr->id());
5242 } 5242 }
5243 5243
5244 5244
5245 void HOptimizedGraphBuilder::VisitClassLiteral(ClassLiteral* lit) {
5246 DCHECK(!HasStackOverflow());
5247 DCHECK(current_block() != NULL);
5248 DCHECK(current_block()->HasPredecessor());
5249 return Bailout(kClassLiteral);
5250 }
5251
5252
5245 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( 5253 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral(
5246 NativeFunctionLiteral* expr) { 5254 NativeFunctionLiteral* expr) {
5247 DCHECK(!HasStackOverflow()); 5255 DCHECK(!HasStackOverflow());
5248 DCHECK(current_block() != NULL); 5256 DCHECK(current_block() != NULL);
5249 DCHECK(current_block()->HasPredecessor()); 5257 DCHECK(current_block()->HasPredecessor());
5250 return Bailout(kNativeFunctionLiteral); 5258 return Bailout(kNativeFunctionLiteral);
5251 } 5259 }
5252 5260
5253 5261
5254 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { 5262 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) {
(...skipping 7238 matching lines...) Expand 10 before | Expand all | Expand 10 after
12493 if (ShouldProduceTraceOutput()) { 12501 if (ShouldProduceTraceOutput()) {
12494 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12502 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12495 } 12503 }
12496 12504
12497 #ifdef DEBUG 12505 #ifdef DEBUG
12498 graph_->Verify(false); // No full verify. 12506 graph_->Verify(false); // No full verify.
12499 #endif 12507 #endif
12500 } 12508 }
12501 12509
12502 } } // namespace v8::internal 12510 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698