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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup per Adam Created 4 years, 5 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
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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast/ast-numbering.h" 10 #include "src/ast/ast-numbering.h"
(...skipping 5493 matching lines...) Expand 10 before | Expand all | Expand 10 after
5504 } else { 5504 } else {
5505 Add<HPushArguments>(shared_info_value); 5505 Add<HPushArguments>(shared_info_value);
5506 Runtime::FunctionId function_id = 5506 Runtime::FunctionId function_id =
5507 expr->pretenure() ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure; 5507 expr->pretenure() ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure;
5508 instr = New<HCallRuntime>(Runtime::FunctionForId(function_id), 1); 5508 instr = New<HCallRuntime>(Runtime::FunctionForId(function_id), 1);
5509 } 5509 }
5510 return ast_context()->ReturnInstruction(instr, expr->id()); 5510 return ast_context()->ReturnInstruction(instr, expr->id());
5511 } 5511 }
5512 5512
5513 5513
5514 void HOptimizedGraphBuilder::VisitClassLiteral(ClassLiteral* lit) {
5515 DCHECK(!HasStackOverflow());
5516 DCHECK(current_block() != NULL);
5517 DCHECK(current_block()->HasPredecessor());
5518 return Bailout(kClassLiteral);
5519 }
5520
5521
5522 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( 5514 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral(
5523 NativeFunctionLiteral* expr) { 5515 NativeFunctionLiteral* expr) {
5524 DCHECK(!HasStackOverflow()); 5516 DCHECK(!HasStackOverflow());
5525 DCHECK(current_block() != NULL); 5517 DCHECK(current_block() != NULL);
5526 DCHECK(current_block()->HasPredecessor()); 5518 DCHECK(current_block()->HasPredecessor());
5527 return Bailout(kNativeFunctionLiteral); 5519 return Bailout(kNativeFunctionLiteral);
5528 } 5520 }
5529 5521
5530 5522
5531 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) { 5523 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) {
(...skipping 7874 matching lines...) Expand 10 before | Expand all | Expand 10 after
13406 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13398 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13407 } 13399 }
13408 13400
13409 #ifdef DEBUG 13401 #ifdef DEBUG
13410 graph_->Verify(false); // No full verify. 13402 graph_->Verify(false); // No full verify.
13411 #endif 13403 #endif
13412 } 13404 }
13413 13405
13414 } // namespace internal 13406 } // namespace internal
13415 } // namespace v8 13407 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698