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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 1979523002: [interpreter] Remove BytecodeArrayBuilder::Illegal(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 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/bailout-reason.h ('k') | src/interpreter/bytecode-array-builder.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/compiler/bytecode-branch-analysis.h" 7 #include "src/compiler/bytecode-branch-analysis.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/operator-properties.h" 9 #include "src/compiler/operator-properties.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 // Consumed by the BytecodeArrayIterator. 1412 // Consumed by the BytecodeArrayIterator.
1413 UNREACHABLE(); 1413 UNREACHABLE();
1414 } 1414 }
1415 1415
1416 void BytecodeGraphBuilder::VisitExtraWide() { 1416 void BytecodeGraphBuilder::VisitExtraWide() {
1417 // Consumed by the BytecodeArrayIterator. 1417 // Consumed by the BytecodeArrayIterator.
1418 UNREACHABLE(); 1418 UNREACHABLE();
1419 } 1419 }
1420 1420
1421 void BytecodeGraphBuilder::VisitIllegal() { 1421 void BytecodeGraphBuilder::VisitIllegal() {
1422 NewNode(javascript()->CallRuntime(Runtime::kAbort), 1422 // Not emitted in valid bytecode.
1423 jsgraph()->Constant(kIllegalBytecode)); 1423 UNREACHABLE();
1424 } 1424 }
1425 1425
1426 void BytecodeGraphBuilder::VisitNop() {} 1426 void BytecodeGraphBuilder::VisitNop() {}
1427 1427
1428 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) { 1428 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) {
1429 if (merge_environments_[current_offset] != nullptr) { 1429 if (merge_environments_[current_offset] != nullptr) {
1430 if (environment() != nullptr) { 1430 if (environment() != nullptr) {
1431 merge_environments_[current_offset]->Merge(environment()); 1431 merge_environments_[current_offset]->Merge(environment());
1432 } 1432 }
1433 set_environment(merge_environments_[current_offset]); 1433 set_environment(merge_environments_[current_offset]);
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 // Phi does not exist yet, introduce one. 1690 // Phi does not exist yet, introduce one.
1691 value = NewPhi(inputs, value, control); 1691 value = NewPhi(inputs, value, control);
1692 value->ReplaceInput(inputs - 1, other); 1692 value->ReplaceInput(inputs - 1, other);
1693 } 1693 }
1694 return value; 1694 return value;
1695 } 1695 }
1696 1696
1697 } // namespace compiler 1697 } // namespace compiler
1698 } // namespace internal 1698 } // namespace internal
1699 } // namespace v8 1699 } // namespace v8
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698