Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 3275256a2811b24743fb89de19a1889aeba470b5..48864423146007ec632915d4ac1ad0658ca80c93 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -232,12 +232,6 @@ void JSGenericLowering::LowerJSToBoolean(Node* node) { |
void JSGenericLowering::LowerJSToNumber(Node* node) { |
Callable callable = CodeFactory::ToNumber(isolate()); |
- // TODO(mstarzinger): Embedding the context this way prevents sharing of code |
- // across native contexts. |
- if (!info_context_constant_.is_set()) { |
- info_context_constant_.set(jsgraph()->HeapConstant(info()->context())); |
- } |
- node->ReplaceInput(1, info_context_constant_.get()); |
ReplaceWithStubCall(node, callable, FlagsForNode(node)); |
} |