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

Unified Diff: src/objects.cc

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing next round of Florian's comments Created 10 years 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/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 399ab092a7edb47c7f7e531ecb73a56807a01231..08a250041579e1bbb2a2d766b7e3cea04cb41813 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -5377,7 +5377,8 @@ void JSFunction::JSFunctionIterateBody(int object_size, ObjectVisitor* v) {
void JSFunction::MarkForLazyRecompilation() {
ASSERT(is_compiled() && !IsOptimized());
- ASSERT(shared()->allows_lazy_compilation());
+ ASSERT(shared()->allows_lazy_compilation()
+ || code() == shared()->code());
Kevin Millikin (Chromium) 2010/12/20 12:05:44 For some reason we like to put || on the first lin
antonm 2010/12/20 20:39:24 Done.
ReplaceCode(Builtins::builtin(Builtins::LazyRecompile));
}

Powered by Google App Engine
This is Rietveld 408576698