Revision: 19810
Author: [email protected]
Date: Tue Mar 11 15:50:41 2014 UTC
Log: Fix kraken/oscillator performance regression after r19635.
Evict previously optimized code after new optimization.
BUG=v8:3202
LOG=N
[email protected]
Review URL: https://codereview.chromium.org/189263009
http://code.google.com/p/v8/source/detail?r=19810
Modified:
/branches/bleeding_edge/src/objects-inl.h
=======================================
--- /branches/bleeding_edge/src/objects-inl.h Tue Mar 11 14:41:22 2014 UTC
+++ /branches/bleeding_edge/src/objects-inl.h Tue Mar 11 15:50:41 2014 UTC
@@ -5430,6 +5430,11 @@
bool was_optimized = IsOptimized();
bool is_optimized = code->kind() == Code::OPTIMIZED_FUNCTION;
+ if (was_optimized && is_optimized) {
+ shared()->EvictFromOptimizedCodeMap(this->code(),
+ "Replacing with another optimized code");
+ }
+
set_code(code);
// Add/remove the function from the list of optimized functions for this
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.