diff options
Diffstat (limited to 'deps/v8/src/compiler/js-graph.cc')
-rw-r--r-- | deps/v8/src/compiler/js-graph.cc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/deps/v8/src/compiler/js-graph.cc b/deps/v8/src/compiler/js-graph.cc index b3ef85fb07..7b74c2a32c 100644 --- a/deps/v8/src/compiler/js-graph.cc +++ b/deps/v8/src/compiler/js-graph.cc @@ -68,7 +68,8 @@ Node* JSGraph::Constant(Handle<Object> value) { Node* JSGraph::Constant(const ObjectRef& ref) { if (ref.IsSmi()) return Constant(ref.AsSmi()); - OddballType oddball_type = ref.oddball_type(); + OddballType oddball_type = + ref.AsHeapObject().GetHeapObjectType().oddball_type(); if (ref.IsHeapNumber()) { return Constant(ref.AsHeapNumber().value()); } else if (oddball_type == OddballType::kUndefined) { @@ -99,19 +100,6 @@ Node* JSGraph::Constant(double value) { return NumberConstant(value); } - -Node* JSGraph::Constant(int32_t value) { - if (value == 0) return ZeroConstant(); - if (value == 1) return OneConstant(); - return NumberConstant(value); -} - -Node* JSGraph::Constant(uint32_t value) { - if (value == 0) return ZeroConstant(); - if (value == 1) return OneConstant(); - return NumberConstant(value); -} - Node* JSGraph::NumberConstant(double value) { Node** loc = cache_.FindNumberConstant(value); if (*loc == nullptr) { |