Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: compiler.cc
- ===================================================================
- --- compiler.cc (revision 15345)
- +++ compiler.cc (working copy)
- @@ -737,7 +737,7 @@
- compilation_cache->PutScript(source, context, result);
- }
- } else {
- - if (result->ic_age() != HEAP->global_ic_age()) {
- + if (result->ic_age() != HEAP->global_ic_age() && !PREMONOMORPHIC) {
- result->ResetForNewContext(HEAP->global_ic_age());
- }
- }
- @@ -800,7 +800,7 @@
- }
- }
- } else {
- - if (result->ic_age() != HEAP->global_ic_age()) {
- + if (result->ic_age() != HEAP->global_ic_age() && !PREMONOMORPHIC) {
- result->ResetForNewContext(HEAP->global_ic_age());
- }
- }
- Index: factory.cc
- ===================================================================
- --- factory.cc (revision 15345)
- +++ factory.cc (working copy)
- @@ -629,7 +629,7 @@
- MapForNewFunction(isolate(), function_info),
- pretenure);
- - if (function_info->ic_age() != isolate()->heap()->global_ic_age()) {
- + if (function_info->ic_age() != isolate()->heap()->global_ic_age() && !PREMONOMORPHIC) {
- function_info->ResetForNewContext(isolate()->heap()->global_ic_age());
- }
- Index: objects-visiting-inl.h
- ===================================================================
- --- objects-visiting-inl.h (revision 15345)
- +++ objects-visiting-inl.h (working copy)
- @@ -399,7 +399,7 @@
- Map* map, HeapObject* object) {
- Heap* heap = map->GetHeap();
- SharedFunctionInfo* shared = SharedFunctionInfo::cast(object);
- - if (shared->ic_age() != heap->global_ic_age()) {
- + if (shared->ic_age() != heap->global_ic_age() && !PREMONOMORPHIC) {
- shared->ResetForNewContext(heap->global_ic_age());
- }
- if (FLAG_cache_optimized_code &&
Advertisement
Add Comment
Please, Sign In to add comment