Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 377164e254d9be7cc2f5b1aa7d6a8b73d97f8443..dde6179007ef8519e4c02f87b768a0037d539d67 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9623,12 +9623,9 @@ void SharedFunctionInfo::AddToOptimizedCodeMap( |
FixedArray* SharedFunctionInfo::GetLiteralsFromOptimizedCodeMap(int index) { |
DCHECK(index > kEntriesStart); |
FixedArray* code_map = FixedArray::cast(optimized_code_map()); |
- if (!bound()) { |
- FixedArray* cached_literals = FixedArray::cast(code_map->get(index + 1)); |
- DCHECK_NOT_NULL(cached_literals); |
- return cached_literals; |
- } |
- return NULL; |
+ FixedArray* cached_literals = FixedArray::cast(code_map->get(index + 1)); |
+ DCHECK_NOT_NULL(cached_literals); |
+ return cached_literals; |
} |