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

Side by Side Diff: src/runtime.cc

Issue 9360043: Properly disable count-based profiler on non-ia32 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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 | « no previous file | src/runtime-profiler.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 8694 matching lines...) Expand 10 before | Expand all | Expand 10 after
8705 } 8705 }
8706 } 8706 }
8707 8707
8708 // Revert to the original stack checks in the original unoptimized code. 8708 // Revert to the original stack checks in the original unoptimized code.
8709 if (FLAG_trace_osr) { 8709 if (FLAG_trace_osr) {
8710 PrintF("[restoring original stack checks in "); 8710 PrintF("[restoring original stack checks in ");
8711 function->PrintName(); 8711 function->PrintName();
8712 PrintF("]\n"); 8712 PrintF("]\n");
8713 } 8713 }
8714 Handle<Code> check_code; 8714 Handle<Code> check_code;
8715 #ifdef V8_TARGET_ARCH_IA32
8715 if (FLAG_count_based_interrupts) { 8716 if (FLAG_count_based_interrupts) {
8716 InterruptStub interrupt_stub; 8717 InterruptStub interrupt_stub;
8717 check_code = interrupt_stub.GetCode(); 8718 check_code = interrupt_stub.GetCode();
8718 } else { 8719 } else // NOLINT
8720 #endif
8721 { // NOLINT
8719 StackCheckStub check_stub; 8722 StackCheckStub check_stub;
8720 check_code = check_stub.GetCode(); 8723 check_code = check_stub.GetCode();
8721 } 8724 }
8722 Handle<Code> replacement_code = isolate->builtins()->OnStackReplacement(); 8725 Handle<Code> replacement_code = isolate->builtins()->OnStackReplacement();
8723 Deoptimizer::RevertStackCheckCode(*unoptimized, 8726 Deoptimizer::RevertStackCheckCode(*unoptimized,
8724 *check_code, 8727 *check_code,
8725 *replacement_code); 8728 *replacement_code);
8726 8729
8727 // Allow OSR only at nesting level zero again. 8730 // Allow OSR only at nesting level zero again.
8728 unoptimized->set_allow_osr_at_loop_nesting_level(0); 8731 unoptimized->set_allow_osr_at_loop_nesting_level(0);
(...skipping 4940 matching lines...) Expand 10 before | Expand all | Expand 10 after
13669 // Handle last resort GC and make sure to allow future allocations 13672 // Handle last resort GC and make sure to allow future allocations
13670 // to grow the heap without causing GCs (if possible). 13673 // to grow the heap without causing GCs (if possible).
13671 isolate->counters()->gc_last_resort_from_js()->Increment(); 13674 isolate->counters()->gc_last_resort_from_js()->Increment();
13672 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13675 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13673 "Runtime::PerformGC"); 13676 "Runtime::PerformGC");
13674 } 13677 }
13675 } 13678 }
13676 13679
13677 13680
13678 } } // namespace v8::internal 13681 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698