Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: src/runtime.cc

Issue 23600072: Delete Runtime_NotifyOSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 8418 matching lines...) Expand 10 before | Expand all | Expand 10 after
8429 } 8429 }
8430 // Evict optimized code for this function from the cache so that it doesn't 8430 // Evict optimized code for this function from the cache so that it doesn't
8431 // get used for new closures. 8431 // get used for new closures.
8432 function->shared()->EvictFromOptimizedCodeMap(*optimized_code, 8432 function->shared()->EvictFromOptimizedCodeMap(*optimized_code,
8433 "notify deoptimized"); 8433 "notify deoptimized");
8434 8434
8435 return isolate->heap()->undefined_value(); 8435 return isolate->heap()->undefined_value();
8436 } 8436 }
8437 8437
8438 8438
8439 RUNTIME_FUNCTION(MaybeObject*, Runtime_NotifyOSR) {
8440 SealHandleScope shs(isolate);
8441 Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate);
8442 delete deoptimizer;
8443 return isolate->heap()->undefined_value();
8444 }
8445
8446
8447 RUNTIME_FUNCTION(MaybeObject*, Runtime_DeoptimizeFunction) { 8439 RUNTIME_FUNCTION(MaybeObject*, Runtime_DeoptimizeFunction) {
8448 HandleScope scope(isolate); 8440 HandleScope scope(isolate);
8449 ASSERT(args.length() == 1); 8441 ASSERT(args.length() == 1);
8450 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 8442 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
8451 if (!function->IsOptimized()) return isolate->heap()->undefined_value(); 8443 if (!function->IsOptimized()) return isolate->heap()->undefined_value();
8452 8444
8453 Deoptimizer::DeoptimizeFunction(*function); 8445 Deoptimizer::DeoptimizeFunction(*function);
8454 8446
8455 return isolate->heap()->undefined_value(); 8447 return isolate->heap()->undefined_value();
8456 } 8448 }
(...skipping 6344 matching lines...) Expand 10 before | Expand all | Expand 10 after
14801 // Handle last resort GC and make sure to allow future allocations 14793 // Handle last resort GC and make sure to allow future allocations
14802 // to grow the heap without causing GCs (if possible). 14794 // to grow the heap without causing GCs (if possible).
14803 isolate->counters()->gc_last_resort_from_js()->Increment(); 14795 isolate->counters()->gc_last_resort_from_js()->Increment();
14804 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14796 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14805 "Runtime::PerformGC"); 14797 "Runtime::PerformGC");
14806 } 14798 }
14807 } 14799 }
14808 14800
14809 14801
14810 } } // namespace v8::internal 14802 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698