Revision: 14652
Author: [email protected]
Date: Mon May 13 17:28:45 2013
Log: MIPS: Only flush SharedFunctionInfo optimized code cache when
necessary
Port r14650 (d045fbd3)
BUG=
Review URL: https://codereview.chromium.org/15035007
http://code.google.com/p/v8/source/detail?r=14652
Modified:
/branches/bleeding_edge/src/mips/deoptimizer-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/deoptimizer-mips.cc Mon May 13
04:10:31 2013
+++ /branches/bleeding_edge/src/mips/deoptimizer-mips.cc Mon May 13
17:28:45 2013
@@ -1,3 +1,4 @@
+
// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -51,14 +52,13 @@
ASSERT(function->IsOptimized());
ASSERT(function->FunctionsInFunctionListShareSameCode());
- // The optimized code is going to be patched, so we cannot use it
- // any more. Play safe and reset the whole cache.
- function->shared()->ClearOptimizedCodeMap("deoptimized function");
-
// Get the optimized code.
Code* code = function->code();
Address code_start_address = code->instruction_start();
+ // The optimized code is going to be patched, so we cannot use it any
more.
+ function->shared()->EvictFromOptimizedCodeMap(code, "deoptimized
function");
+
// Invalidate the relocation information, as it will become invalid by
the
// code patching below, and is not needed any more.
code->InvalidateRelocation();
--
--
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/groups/opt_out.