Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: src/objects.cc

Issue 10872084: Allocate block-scoped global bindings to global context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698