Reviewers: Yang,
Message:
PTAL
Description:
Fix kraken/oscillator performance regression after r19635.
Evict previously optimized code after new optimization.
BUG=v8:3202
LOG=N
[email protected]
Please review this at https://codereview.chromium.org/189263009/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+5, -0 lines):
M src/objects-inl.h
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index
74a252c63deaba37811c96b65374145a8c9f5bac..3670baf78b04845eba2676b6bb82c63a6802d3c1
100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5413,6 +5413,11 @@ void JSFunction::ReplaceCode(Code* code) {
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.