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

Side by Side Diff: src/hydrogen.cc

Issue 1106383008: Remove unused Module-related AST nodes and associated codegen (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « src/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11585 matching lines...) Expand 10 before | Expand all | Expand 10 after
11596 Add<HSimulate>(proxy->id(), REMOVABLE_SIMULATE); 11596 Add<HSimulate>(proxy->id(), REMOVABLE_SIMULATE);
11597 } 11597 }
11598 break; 11598 break;
11599 } 11599 }
11600 case Variable::LOOKUP: 11600 case Variable::LOOKUP:
11601 return Bailout(kUnsupportedLookupSlotInDeclaration); 11601 return Bailout(kUnsupportedLookupSlotInDeclaration);
11602 } 11602 }
11603 } 11603 }
11604 11604
11605 11605
11606 void HOptimizedGraphBuilder::VisitModuleDeclaration(
11607 ModuleDeclaration* declaration) {
11608 return Bailout(kModuleDeclaration);
11609 }
11610
11611
11612 void HOptimizedGraphBuilder::VisitImportDeclaration( 11606 void HOptimizedGraphBuilder::VisitImportDeclaration(
11613 ImportDeclaration* declaration) { 11607 ImportDeclaration* declaration) {
11614 UNREACHABLE(); 11608 UNREACHABLE();
11615 } 11609 }
11616 11610
11617 11611
11618 void HOptimizedGraphBuilder::VisitExportDeclaration( 11612 void HOptimizedGraphBuilder::VisitExportDeclaration(
11619 ExportDeclaration* declaration) { 11613 ExportDeclaration* declaration) {
11620 UNREACHABLE(); 11614 UNREACHABLE();
11621 } 11615 }
11622 11616
11623 11617
11624 void HOptimizedGraphBuilder::VisitModuleLiteral(ModuleLiteral* module) {
11625 UNREACHABLE();
11626 }
11627
11628
11629 void HOptimizedGraphBuilder::VisitModulePath(ModulePath* module) {
11630 UNREACHABLE();
11631 }
11632
11633
11634 void HOptimizedGraphBuilder::VisitModuleUrl(ModuleUrl* module) {
11635 UNREACHABLE();
11636 }
11637
11638
11639 void HOptimizedGraphBuilder::VisitModuleStatement(ModuleStatement* stmt) {
11640 UNREACHABLE();
11641 }
11642
11643
11644 // Generators for inline runtime functions. 11618 // Generators for inline runtime functions.
11645 // Support for types. 11619 // Support for types.
11646 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) { 11620 void HOptimizedGraphBuilder::GenerateIsSmi(CallRuntime* call) {
11647 DCHECK(call->arguments()->length() == 1); 11621 DCHECK(call->arguments()->length() == 1);
11648 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 11622 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11649 HValue* value = Pop(); 11623 HValue* value = Pop();
11650 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value); 11624 HIsSmiAndBranch* result = New<HIsSmiAndBranch>(value);
11651 return ast_context()->ReturnControl(result, call->id()); 11625 return ast_context()->ReturnControl(result, call->id());
11652 } 11626 }
11653 11627
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
13106 if (ShouldProduceTraceOutput()) { 13080 if (ShouldProduceTraceOutput()) {
13107 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13081 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13108 } 13082 }
13109 13083
13110 #ifdef DEBUG 13084 #ifdef DEBUG
13111 graph_->Verify(false); // No full verify. 13085 graph_->Verify(false); // No full verify.
13112 #endif 13086 #endif
13113 } 13087 }
13114 13088
13115 } } // namespace v8::internal 13089 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698