OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/double.h" | 8 #include "src/double.h" |
9 #include "src/factory.h" | 9 #include "src/factory.h" |
10 #include "src/hydrogen-infer-representation.h" | 10 #include "src/hydrogen-infer-representation.h" |
(...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4056 switch (value()->opcode()) { | 4056 switch (value()->opcode()) { |
4057 case kLoadKeyed: { | 4057 case kLoadKeyed: { |
4058 ElementsKind load_kind = HLoadKeyed::cast(value())->elements_kind(); | 4058 ElementsKind load_kind = HLoadKeyed::cast(value())->elements_kind(); |
4059 return IsExternalFloatOrDoubleElementsKind(load_kind) || | 4059 return IsExternalFloatOrDoubleElementsKind(load_kind) || |
4060 IsFixedFloatElementsKind(load_kind); | 4060 IsFixedFloatElementsKind(load_kind); |
4061 } | 4061 } |
4062 case kChange: { | 4062 case kChange: { |
4063 Representation from = HChange::cast(value())->from(); | 4063 Representation from = HChange::cast(value())->from(); |
4064 return from.IsTagged() || from.IsHeapObject(); | 4064 return from.IsTagged() || from.IsHeapObject(); |
4065 } | 4065 } |
4066 case kPhi: | 4066 case kLoadNamedField: |
| 4067 case kPhi: { |
4067 // Better safe than sorry... | 4068 // Better safe than sorry... |
4068 return true; | 4069 return true; |
| 4070 } |
4069 default: | 4071 default: |
4070 return false; | 4072 return false; |
4071 } | 4073 } |
4072 } | 4074 } |
4073 | 4075 |
4074 | 4076 |
4075 #define H_CONSTANT_INT(val) \ | 4077 #define H_CONSTANT_INT(val) \ |
4076 HConstant::New(zone, context, static_cast<int32_t>(val)) | 4078 HConstant::New(zone, context, static_cast<int32_t>(val)) |
4077 #define H_CONSTANT_DOUBLE(val) \ | 4079 #define H_CONSTANT_DOUBLE(val) \ |
4078 HConstant::New(zone, context, static_cast<double>(val)) | 4080 HConstant::New(zone, context, static_cast<double>(val)) |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4823 break; | 4825 break; |
4824 case HObjectAccess::kExternalMemory: | 4826 case HObjectAccess::kExternalMemory: |
4825 os << "[external-memory]"; | 4827 os << "[external-memory]"; |
4826 break; | 4828 break; |
4827 } | 4829 } |
4828 | 4830 |
4829 return os << "@" << access.offset(); | 4831 return os << "@" << access.offset(); |
4830 } | 4832 } |
4831 | 4833 |
4832 } } // namespace v8::internal | 4834 } } // namespace v8::internal |
OLD | NEW |