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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.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/linkage.h ('k') | src/compiler/mips64/instruction-selector-mips64.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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 int slot = buffer.pushed_nodes.size() - 1; 534 int slot = buffer.pushed_nodes.size() - 1;
535 for (Node* node : base::Reversed(buffer.pushed_nodes)) { 535 for (Node* node : base::Reversed(buffer.pushed_nodes)) {
536 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(node), 536 Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(node),
537 g.TempImmediate(slot << kPointerSizeLog2)); 537 g.TempImmediate(slot << kPointerSizeLog2));
538 slot--; 538 slot--;
539 } 539 }
540 540
541 // Pass label of exception handler block. 541 // Pass label of exception handler block.
542 CallDescriptor::Flags flags = descriptor->flags(); 542 CallDescriptor::Flags flags = descriptor->flags();
543 if (handler) { 543 if (handler) {
544 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode());
545 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front());
546 if (hint == IfExceptionHint::kLocallyCaught) {
547 flags |= CallDescriptor::kHasLocalCatchHandler;
548 }
544 flags |= CallDescriptor::kHasExceptionHandler; 549 flags |= CallDescriptor::kHasExceptionHandler;
545 buffer.instruction_args.push_back(g.Label(handler)); 550 buffer.instruction_args.push_back(g.Label(handler));
546 } 551 }
547 552
548 // Select the appropriate opcode based on the call type. 553 // Select the appropriate opcode based on the call type.
549 InstructionCode opcode; 554 InstructionCode opcode;
550 switch (descriptor->kind()) { 555 switch (descriptor->kind()) {
551 case CallDescriptor::kCallCodeObject: { 556 case CallDescriptor::kCallCodeObject: {
552 opcode = kArchCallCodeObject; 557 opcode = kArchCallCodeObject;
553 break; 558 break;
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 IsFp64Mode()) { 1086 IsFp64Mode()) {
1082 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1087 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1083 MachineOperatorBuilder::kFloat64RoundTruncate; 1088 MachineOperatorBuilder::kFloat64RoundTruncate;
1084 } 1089 }
1085 return flags; 1090 return flags;
1086 } 1091 }
1087 1092
1088 } // namespace compiler 1093 } // namespace compiler
1089 } // namespace internal 1094 } // namespace internal
1090 } // namespace v8 1095 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698