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

Side by Side Diff: src/ast-numbering.cc

Issue 1158883006: [turbofan] Ship TF for class literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 node->set_base_id(ReserveIdRange(ForStatement::num_ids())); 408 node->set_base_id(ReserveIdRange(ForStatement::num_ids()));
409 if (node->init() != NULL) Visit(node->init()); 409 if (node->init() != NULL) Visit(node->init());
410 if (node->cond() != NULL) Visit(node->cond()); 410 if (node->cond() != NULL) Visit(node->cond());
411 if (node->next() != NULL) Visit(node->next()); 411 if (node->next() != NULL) Visit(node->next());
412 Visit(node->body()); 412 Visit(node->body());
413 } 413 }
414 414
415 415
416 void AstNumberingVisitor::VisitClassLiteral(ClassLiteral* node) { 416 void AstNumberingVisitor::VisitClassLiteral(ClassLiteral* node) {
417 IncrementNodeCount(); 417 IncrementNodeCount();
418 DisableOptimization(kClassLiteral); 418 DisableCrankshaft(kClassLiteral);
419 node->set_base_id(ReserveIdRange(node->num_ids())); 419 node->set_base_id(ReserveIdRange(node->num_ids()));
420 if (node->extends()) Visit(node->extends()); 420 if (node->extends()) Visit(node->extends());
421 if (node->constructor()) Visit(node->constructor()); 421 if (node->constructor()) Visit(node->constructor());
422 if (node->class_variable_proxy()) { 422 if (node->class_variable_proxy()) {
423 VisitVariableProxy(node->class_variable_proxy()); 423 VisitVariableProxy(node->class_variable_proxy());
424 } 424 }
425 for (int i = 0; i < node->properties()->length(); i++) { 425 for (int i = 0; i < node->properties()->length(); i++) {
426 VisitObjectLiteralProperty(node->properties()->at(i)); 426 VisitObjectLiteralProperty(node->properties()->at(i));
427 } 427 }
428 } 428 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 541 }
542 542
543 543
544 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, 544 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone,
545 FunctionLiteral* function) { 545 FunctionLiteral* function) {
546 AstNumberingVisitor visitor(isolate, zone); 546 AstNumberingVisitor visitor(isolate, zone);
547 return visitor.Renumber(function); 547 return visitor.Renumber(function);
548 } 548 }
549 } // namespace internal 549 } // namespace internal
550 } // namespace v8 550 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698