From: whesse@chromium.org Date: Fri, 15 Oct 2010 11:45:05 +0000 (+0000) Subject: Add stop-at flag implementation to full compiler on all platforms. X-Git-Tag: upstream/4.7.83~21086 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aec3124688e63098145bbe4ed84672704dd3957;p=platform%2Fupstream%2Fv8.git Add stop-at flag implementation to full compiler on all platforms. Review URL: http://codereview.chromium.org/3791009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5629 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc index 9fc0c09..2855ca4 100644 --- a/src/arm/full-codegen-arm.cc +++ b/src/arm/full-codegen-arm.cc @@ -62,6 +62,13 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { SetFunctionPosition(function()); Comment cmnt(masm_, "[ function compiled by full code generator"); +#ifdef DEBUG + if (strlen(FLAG_stop_at) > 0 && + info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { + __ stop("stop-at"); + } +#endif + int locals_count = scope()->num_stack_slots(); __ Push(lr, fp, cp, r1); diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc index cf53f4b..150df99 100644 --- a/src/ia32/full-codegen-ia32.cc +++ b/src/ia32/full-codegen-ia32.cc @@ -61,6 +61,13 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { SetFunctionPosition(function()); Comment cmnt(masm_, "[ function compiled by full code generator"); +#ifdef DEBUG + if (strlen(FLAG_stop_at) > 0 && + info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { + __ int3(); + } +#endif + __ push(ebp); // Caller's frame pointer. __ mov(ebp, esp); __ push(esi); // Callee's context. diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc index 2256100..32d6242 100644 --- a/src/x64/full-codegen-x64.cc +++ b/src/x64/full-codegen-x64.cc @@ -61,6 +61,12 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { SetFunctionPosition(function()); Comment cmnt(masm_, "[ function compiled by full code generator"); +#ifdef DEBUG + if (strlen(FLAG_stop_at) > 0 && + info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { + __ int3(); + } +#endif __ push(rbp); // Caller's frame pointer. __ movq(rbp, rsp); __ push(rsi); // Callee's context.