File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
#define V8_MAJOR_VERSION 9
12
12
#define V8_MINOR_VERSION 4
13
13
#define V8_BUILD_NUMBER 146
14
- #define V8_PATCH_LEVEL 24
14
+ #define V8_PATCH_LEVEL 26
15
15
16
16
// Use 1 for candidates and 0 otherwise.
17
17
// (Boolean macro values are not supported by all preprocessors.)
Original file line number Diff line number Diff line change @@ -99,11 +99,14 @@ class IA32OperandGenerator final : public OperandGenerator {
99
99
bool CanBeImmediate (Node* node) {
100
100
switch (node->opcode ()) {
101
101
case IrOpcode::kInt32Constant :
102
- case IrOpcode::kNumberConstant :
103
102
case IrOpcode::kExternalConstant :
104
103
case IrOpcode::kRelocatableInt32Constant :
105
104
case IrOpcode::kRelocatableInt64Constant :
106
105
return true ;
106
+ case IrOpcode::kNumberConstant : {
107
+ const double value = OpParameter<double >(node->op ());
108
+ return bit_cast<int64_t >(value) == 0 ;
109
+ }
107
110
case IrOpcode::kHeapConstant : {
108
111
// TODO(bmeurer): We must not dereference handles concurrently. If we
109
112
// really have to this here, then we need to find a way to put this
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Reduction SimplifiedOperatorReducer::Reduce(Node* node) {
77
77
case IrOpcode::kChangeInt32ToTagged : {
78
78
Int32Matcher m (node->InputAt (0 ));
79
79
if (m.HasResolvedValue ()) return ReplaceNumber (m.ResolvedValue ());
80
- if (m.IsChangeTaggedToInt32 () || m. IsChangeTaggedSignedToInt32 ()) {
80
+ if (m.IsChangeTaggedSignedToInt32 ()) {
81
81
return Replace (m.InputAt (0 ));
82
82
}
83
83
break ;
You can’t perform that action at this time.
0 commit comments