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

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

Issue 1156403002: [turbofan] Record SharedFunctionInfo of inlined functions. (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 | « src/compiler/instruction.cc ('k') | src/objects.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 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size()); 1045 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size());
1046 1046
1047 FrameStateDescriptor* outer_state = NULL; 1047 FrameStateDescriptor* outer_state = NULL;
1048 Node* outer_node = state->InputAt(kFrameStateOuterStateInput); 1048 Node* outer_node = state->InputAt(kFrameStateOuterStateInput);
1049 if (outer_node->opcode() == IrOpcode::kFrameState) { 1049 if (outer_node->opcode() == IrOpcode::kFrameState) {
1050 outer_state = GetFrameStateDescriptor(outer_node); 1050 outer_state = GetFrameStateDescriptor(outer_node);
1051 } 1051 }
1052 1052
1053 return new (instruction_zone()) FrameStateDescriptor( 1053 return new (instruction_zone()) FrameStateDescriptor(
1054 instruction_zone(), state_info.type(), state_info.bailout_id(), 1054 instruction_zone(), state_info.type(), state_info.bailout_id(),
1055 state_info.state_combine(), parameters, locals, stack, outer_state); 1055 state_info.state_combine(), parameters, locals, stack,
1056 state_info.shared_info(), outer_state);
1056 } 1057 }
1057 1058
1058 1059
1059 static InstructionOperand SlotOrImmediate(OperandGenerator* g, Node* input) { 1060 static InstructionOperand SlotOrImmediate(OperandGenerator* g, Node* input) {
1060 switch (input->opcode()) { 1061 switch (input->opcode()) {
1061 case IrOpcode::kInt32Constant: 1062 case IrOpcode::kInt32Constant:
1062 case IrOpcode::kNumberConstant: 1063 case IrOpcode::kNumberConstant:
1063 case IrOpcode::kFloat64Constant: 1064 case IrOpcode::kFloat64Constant:
1064 case IrOpcode::kHeapConstant: 1065 case IrOpcode::kHeapConstant:
1065 return g->UseImmediate(input); 1066 return g->UseImmediate(input);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 MachineOperatorBuilder::Flags 1154 MachineOperatorBuilder::Flags
1154 InstructionSelector::SupportedMachineOperatorFlags() { 1155 InstructionSelector::SupportedMachineOperatorFlags() {
1155 return MachineOperatorBuilder::Flag::kNoFlags; 1156 return MachineOperatorBuilder::Flag::kNoFlags;
1156 } 1157 }
1157 1158
1158 #endif // !V8_TURBOFAN_BACKEND 1159 #endif // !V8_TURBOFAN_BACKEND
1159 1160
1160 } // namespace compiler 1161 } // namespace compiler
1161 } // namespace internal 1162 } // namespace internal
1162 } // namespace v8 1163 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698