Properly disable count-based profiler on non-ia32
TEST=buildbot redness gone Review URL: https://chromiumcodereview.appspot.com/9360043 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10708 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b098a2bdf6
commit
8ac0c1cdf2
@ -149,10 +149,13 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) {
|
||||
// prepared to generate it, but we don't expect to have to.
|
||||
bool found_code = false;
|
||||
Code* stack_check_code = NULL;
|
||||
#ifdef V8_TARGET_ARCH_IA32
|
||||
if (FLAG_count_based_interrupts) {
|
||||
InterruptStub interrupt_stub;
|
||||
found_code = interrupt_stub.FindCodeInCache(&stack_check_code);
|
||||
} else {
|
||||
} else // NOLINT
|
||||
#endif
|
||||
{ // NOLINT
|
||||
StackCheckStub check_stub;
|
||||
found_code = check_stub.FindCodeInCache(&stack_check_code);
|
||||
}
|
||||
@ -304,7 +307,9 @@ void RuntimeProfiler::OptimizeNow() {
|
||||
|
||||
|
||||
void RuntimeProfiler::NotifyTick() {
|
||||
#ifdef V8_TARGET_ARCH_IA32
|
||||
if (FLAG_count_based_interrupts) return;
|
||||
#endif
|
||||
isolate_->stack_guard()->RequestRuntimeProfilerTick();
|
||||
}
|
||||
|
||||
|
@ -8712,10 +8712,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CompileForOnStackReplacement) {
|
||||
PrintF("]\n");
|
||||
}
|
||||
Handle<Code> check_code;
|
||||
#ifdef V8_TARGET_ARCH_IA32
|
||||
if (FLAG_count_based_interrupts) {
|
||||
InterruptStub interrupt_stub;
|
||||
check_code = interrupt_stub.GetCode();
|
||||
} else {
|
||||
} else // NOLINT
|
||||
#endif
|
||||
{ // NOLINT
|
||||
StackCheckStub check_stub;
|
||||
check_code = check_stub.GetCode();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user