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

Unified Diff: src/contexts.cc

Issue 1250413002: [stubs] Further optimize Load/StoreGlobalViaContext stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 5 years, 5 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
Index: src/contexts.cc
diff --git a/src/contexts.cc b/src/contexts.cc
index 88f593fab8525a197cc2d13d47dbdf8ece4a3292..31ce98c8986b402bba38a1d13a1f87be9b2f6d9e 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -365,8 +365,6 @@ void Context::InitializeGlobalSlots() {
int context_locals = scope_info->ContextLocalCount();
int index = Context::MIN_CONTEXT_SLOTS + context_locals;
for (int i = 0; i < context_globals; i++) {
- // Clear both read and write slots.
- set(index++, empty_cell);
set(index++, empty_cell);
}
}

Powered by Google App Engine
This is Rietveld 408576698