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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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/compiler/instruction-scheduler.cc ('k') | src/compiler/linkage.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 temps.push_back(g.TempRegister()); 1630 temps.push_back(g.TempRegister());
1631 } 1631 }
1632 } else { 1632 } else {
1633 switch (descriptor->kind()) { 1633 switch (descriptor->kind()) {
1634 case CallDescriptor::kCallCodeObject: 1634 case CallDescriptor::kCallCodeObject:
1635 opcode = kArchTailCallCodeObject; 1635 opcode = kArchTailCallCodeObject;
1636 break; 1636 break;
1637 case CallDescriptor::kCallJSFunction: 1637 case CallDescriptor::kCallJSFunction:
1638 opcode = kArchTailCallJSFunction; 1638 opcode = kArchTailCallJSFunction;
1639 break; 1639 break;
1640 case CallDescriptor::kCallAddress:
1641 opcode = kArchTailCallAddress;
1642 break;
1640 default: 1643 default:
1641 UNREACHABLE(); 1644 UNREACHABLE();
1642 return; 1645 return;
1643 } 1646 }
1644 } 1647 }
1645 opcode |= MiscField::encode(descriptor->flags()); 1648 opcode |= MiscField::encode(descriptor->flags());
1646 1649
1647 buffer.instruction_args.push_back(g.TempImmediate(stack_param_delta)); 1650 buffer.instruction_args.push_back(g.TempImmediate(stack_param_delta));
1648 1651
1649 Emit(kArchPrepareTailCall, g.NoOutput(), 1652 Emit(kArchPrepareTailCall, g.NoOutput(),
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 return new (instruction_zone()) FrameStateDescriptor( 1802 return new (instruction_zone()) FrameStateDescriptor(
1800 instruction_zone(), state_info.type(), state_info.bailout_id(), 1803 instruction_zone(), state_info.type(), state_info.bailout_id(),
1801 state_info.state_combine(), parameters, locals, stack, 1804 state_info.state_combine(), parameters, locals, stack,
1802 state_info.shared_info(), outer_state); 1805 state_info.shared_info(), outer_state);
1803 } 1806 }
1804 1807
1805 1808
1806 } // namespace compiler 1809 } // namespace compiler
1807 } // namespace internal 1810 } // namespace internal
1808 } // namespace v8 1811 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-scheduler.cc ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698