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

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

Issue 1158563008: [turbofan] Introduce prediction for exception handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Architecture ports. 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/arm/instruction-selector-arm.cc ('k') | src/compiler/ast-graph-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 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-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 Emit(kArm64PokePair, g.NoOutput(), 1269 Emit(kArm64PokePair, g.NoOutput(),
1270 g.UseRegister(buffer.pushed_nodes[slot]), 1270 g.UseRegister(buffer.pushed_nodes[slot]),
1271 g.UseRegister(buffer.pushed_nodes[slot - 1]), 1271 g.UseRegister(buffer.pushed_nodes[slot - 1]),
1272 g.TempImmediate(slot)); 1272 g.TempImmediate(slot));
1273 } 1273 }
1274 } 1274 }
1275 1275
1276 // Pass label of exception handler block. 1276 // Pass label of exception handler block.
1277 CallDescriptor::Flags flags = descriptor->flags(); 1277 CallDescriptor::Flags flags = descriptor->flags();
1278 if (handler != nullptr) { 1278 if (handler != nullptr) {
1279 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode());
1280 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front());
1281 if (hint == IfExceptionHint::kLocallyCaught) {
1282 flags |= CallDescriptor::kHasLocalCatchHandler;
1283 }
1279 flags |= CallDescriptor::kHasExceptionHandler; 1284 flags |= CallDescriptor::kHasExceptionHandler;
1280 buffer.instruction_args.push_back(g.Label(handler)); 1285 buffer.instruction_args.push_back(g.Label(handler));
1281 } 1286 }
1282 1287
1283 // Select the appropriate opcode based on the call type. 1288 // Select the appropriate opcode based on the call type.
1284 InstructionCode opcode; 1289 InstructionCode opcode;
1285 switch (descriptor->kind()) { 1290 switch (descriptor->kind()) {
1286 case CallDescriptor::kCallCodeObject: { 1291 case CallDescriptor::kCallCodeObject: {
1287 opcode = kArchCallCodeObject; 1292 opcode = kArchCallCodeObject;
1288 break; 1293 break;
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 MachineOperatorBuilder::kFloat64RoundTruncate | 1905 MachineOperatorBuilder::kFloat64RoundTruncate |
1901 MachineOperatorBuilder::kFloat64RoundTiesAway | 1906 MachineOperatorBuilder::kFloat64RoundTiesAway |
1902 MachineOperatorBuilder::kWord32ShiftIsSafe | 1907 MachineOperatorBuilder::kWord32ShiftIsSafe |
1903 MachineOperatorBuilder::kInt32DivIsSafe | 1908 MachineOperatorBuilder::kInt32DivIsSafe |
1904 MachineOperatorBuilder::kUint32DivIsSafe; 1909 MachineOperatorBuilder::kUint32DivIsSafe;
1905 } 1910 }
1906 1911
1907 } // namespace compiler 1912 } // namespace compiler
1908 } // namespace internal 1913 } // namespace internal
1909 } // namespace v8 1914 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698