Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 927fa45269035f2baeef6bcfa288336b3b6b2d18..5e7e41ff7d38979694e0d71451e58c53335ebe28 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -11998,18 +11998,16 @@ MaybeObject* CompilationCacheTable::Put(String* src, |
CurrentGlobalLanguageMode(), |
RelocInfo::kNoPosition); |
Object* obj; |
- { MaybeObject* maybe_obj = EnsureCapacity(1, &key); |
- if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
- } |
+ MaybeObject* maybe_obj = EnsureCapacity(1, &key); |
+ if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
CompilationCacheTable* cache = |
reinterpret_cast<CompilationCacheTable*>(obj); |
Sven Panne
2012/08/28 07:35:00
Do we really need the reinterpret_cast here or wou
rossberg
2012/08/28 11:09:39
Indeed, it's not needed. Changed.
|
int entry = cache->FindInsertionEntry(key.Hash()); |
Object* k; |
- { MaybeObject* maybe_k = key.AsObject(); |
- if (!maybe_k->ToObject(&k)) return maybe_k; |
- } |
+ MaybeObject* maybe_k = key.AsObject(); |
+ if (!maybe_k->ToObject(&k)) return maybe_k; |
cache->set(EntryToIndex(entry), k); |
cache->set(EntryToIndex(entry) + 1, value); |