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

Side by Side Diff: src/compiler/operator-properties.cc

Issue 841443004: [turbofan] Allow deoptimization for JSToNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 11 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/node-properties-inl.h ('k') | src/ia32/full-codegen-ia32.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/operator-properties.h" 5 #include "src/compiler/operator-properties.h"
6 6
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 case IrOpcode::kJSMultiply: 63 case IrOpcode::kJSMultiply:
64 case IrOpcode::kJSShiftLeft: 64 case IrOpcode::kJSShiftLeft:
65 case IrOpcode::kJSShiftRight: 65 case IrOpcode::kJSShiftRight:
66 case IrOpcode::kJSShiftRightLogical: 66 case IrOpcode::kJSShiftRightLogical:
67 case IrOpcode::kJSStoreNamed: 67 case IrOpcode::kJSStoreNamed:
68 case IrOpcode::kJSStoreProperty: 68 case IrOpcode::kJSStoreProperty:
69 case IrOpcode::kJSSubtract: 69 case IrOpcode::kJSSubtract:
70 70
71 // Conversions 71 // Conversions
72 case IrOpcode::kJSToObject: 72 case IrOpcode::kJSToObject:
73 case IrOpcode::kJSToNumber:
73 74
74 // Other 75 // Other
75 case IrOpcode::kJSDeleteProperty: 76 case IrOpcode::kJSDeleteProperty:
76 return true; 77 return true;
77 78
78 default: 79 default:
79 return false; 80 return false;
80 } 81 }
81 } 82 }
82 83
(...skipping 11 matching lines...) Expand all
94 Operator::Opcode const opcode = op->opcode(); 95 Operator::Opcode const opcode = op->opcode();
95 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || 96 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd ||
96 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 97 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
97 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 98 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
98 opcode == IrOpcode::kIfFalse; 99 opcode == IrOpcode::kIfFalse;
99 } 100 }
100 101
101 } // namespace compiler 102 } // namespace compiler
102 } // namespace internal 103 } // namespace internal
103 } // namespace v8 104 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node-properties-inl.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698