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

Unified Diff: src/objects.cc

Issue 1210523002: Make sure bound functions never make it into optimized code map. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/compiler.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »
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 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;
}
« no previous file with comments | « src/compiler.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698