Heavensrevenge

Issue-2741-PREMONOMORPHIC-Test

Jun 26th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.75 KB | None | 0 0
  1. Index: compiler.cc
  2. ===================================================================
  3. --- compiler.cc (revision 15345)
  4. +++ compiler.cc (working copy)
  5. @@ -737,7 +737,7 @@
  6.        compilation_cache->PutScript(source, context, result);
  7.      }
  8.    } else {
  9. -    if (result->ic_age() != HEAP->global_ic_age()) {
  10. +    if (result->ic_age() != HEAP->global_ic_age() && !PREMONOMORPHIC) {
  11.        result->ResetForNewContext(HEAP->global_ic_age());
  12.      }
  13.    }
  14. @@ -800,7 +800,7 @@
  15.        }
  16.      }
  17.    } else {
  18. -    if (result->ic_age() != HEAP->global_ic_age()) {
  19. +    if (result->ic_age() != HEAP->global_ic_age() && !PREMONOMORPHIC) {
  20.        result->ResetForNewContext(HEAP->global_ic_age());
  21.      }
  22.    }
  23. Index: factory.cc
  24. ===================================================================
  25. --- factory.cc  (revision 15345)
  26. +++ factory.cc  (working copy)
  27. @@ -629,7 +629,7 @@
  28.        MapForNewFunction(isolate(), function_info),
  29.        pretenure);
  30.  
  31. -  if (function_info->ic_age() != isolate()->heap()->global_ic_age()) {
  32. +  if (function_info->ic_age() != isolate()->heap()->global_ic_age() && !PREMONOMORPHIC) {
  33.      function_info->ResetForNewContext(isolate()->heap()->global_ic_age());
  34.    }
  35.  
  36. Index: objects-visiting-inl.h
  37. ===================================================================
  38. --- objects-visiting-inl.h  (revision 15345)
  39. +++ objects-visiting-inl.h  (working copy)
  40. @@ -399,7 +399,7 @@
  41.      Map* map, HeapObject* object) {
  42.    Heap* heap = map->GetHeap();
  43.    SharedFunctionInfo* shared = SharedFunctionInfo::cast(object);
  44. -  if (shared->ic_age() != heap->global_ic_age()) {
  45. +  if (shared->ic_age() != heap->global_ic_age() && !PREMONOMORPHIC) {
  46.      shared->ResetForNewContext(heap->global_ic_age());
  47.    }
  48.    if (FLAG_cache_optimized_code &&
Advertisement
Add Comment
Please, Sign In to add comment