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 2587763003: [turbofan] Pass Runtime::FunctionId to TrapIf and TrapUnless isel methods. (Closed)
Patch Set: Fix typos Created 4 years 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-selector.h ('k') | src/compiler/mips/instruction-selector-mips.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/compiler-source-position-table.h" 10 #include "src/compiler/compiler-source-position-table.h"
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 if (!IsSmiDouble(value)) MarkAsReference(node); 1034 if (!IsSmiDouble(value)) MarkAsReference(node);
1035 return VisitConstant(node); 1035 return VisitConstant(node);
1036 } 1036 }
1037 case IrOpcode::kCall: 1037 case IrOpcode::kCall:
1038 return VisitCall(node); 1038 return VisitCall(node);
1039 case IrOpcode::kDeoptimizeIf: 1039 case IrOpcode::kDeoptimizeIf:
1040 return VisitDeoptimizeIf(node); 1040 return VisitDeoptimizeIf(node);
1041 case IrOpcode::kDeoptimizeUnless: 1041 case IrOpcode::kDeoptimizeUnless:
1042 return VisitDeoptimizeUnless(node); 1042 return VisitDeoptimizeUnless(node);
1043 case IrOpcode::kTrapIf: 1043 case IrOpcode::kTrapIf:
1044 return VisitTrapIf(node); 1044 return VisitTrapIf(node, static_cast<Runtime::FunctionId>(
1045 OpParameter<int32_t>(node->op())));
1045 case IrOpcode::kTrapUnless: 1046 case IrOpcode::kTrapUnless:
1046 return VisitTrapUnless(node); 1047 return VisitTrapUnless(node, static_cast<Runtime::FunctionId>(
1048 OpParameter<int32_t>(node->op())));
1047 case IrOpcode::kFrameState: 1049 case IrOpcode::kFrameState:
1048 case IrOpcode::kStateValues: 1050 case IrOpcode::kStateValues:
1049 case IrOpcode::kObjectState: 1051 case IrOpcode::kObjectState:
1050 return; 1052 return;
1051 case IrOpcode::kDebugBreak: 1053 case IrOpcode::kDebugBreak:
1052 VisitDebugBreak(node); 1054 VisitDebugBreak(node);
1053 return; 1055 return;
1054 case IrOpcode::kComment: 1056 case IrOpcode::kComment:
1055 VisitComment(node); 1057 VisitComment(node);
1056 return; 1058 return;
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 return new (instruction_zone()) FrameStateDescriptor( 2160 return new (instruction_zone()) FrameStateDescriptor(
2159 instruction_zone(), state_info.type(), state_info.bailout_id(), 2161 instruction_zone(), state_info.type(), state_info.bailout_id(),
2160 state_info.state_combine(), parameters, locals, stack, 2162 state_info.state_combine(), parameters, locals, stack,
2161 state_info.shared_info(), outer_state); 2163 state_info.shared_info(), outer_state);
2162 } 2164 }
2163 2165
2164 2166
2165 } // namespace compiler 2167 } // namespace compiler
2166 } // namespace internal 2168 } // namespace internal
2167 } // namespace v8 2169 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.h ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698