Commit c582b41d authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix native arm build.

TBR=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/533653003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23619 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4f00c1b5
...@@ -1159,7 +1159,7 @@ void CEntryStub::Generate(MacroAssembler* masm) { ...@@ -1159,7 +1159,7 @@ void CEntryStub::Generate(MacroAssembler* masm) {
if (FLAG_debug_code) { if (FLAG_debug_code) {
if (frame_alignment > kPointerSize) { if (frame_alignment > kPointerSize) {
Label alignment_as_expected; Label alignment_as_expected;
DCHECK(IsPowerOf2(frame_alignment)); DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
__ tst(sp, Operand(frame_alignment_mask)); __ tst(sp, Operand(frame_alignment_mask));
__ b(eq, &alignment_as_expected); __ b(eq, &alignment_as_expected);
// Don't use Check here, as it will call Runtime_Abort re-entering here. // Don't use Check here, as it will call Runtime_Abort re-entering here.
......
...@@ -3568,7 +3568,7 @@ void MacroAssembler::CallCFunctionHelper(Register function, ...@@ -3568,7 +3568,7 @@ void MacroAssembler::CallCFunctionHelper(Register function,
int frame_alignment = base::OS::ActivationFrameAlignment(); int frame_alignment = base::OS::ActivationFrameAlignment();
int frame_alignment_mask = frame_alignment - 1; int frame_alignment_mask = frame_alignment - 1;
if (frame_alignment > kPointerSize) { if (frame_alignment > kPointerSize) {
DCHECK(IsPowerOf2(frame_alignment)); DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
Label alignment_as_expected; Label alignment_as_expected;
tst(sp, Operand(frame_alignment_mask)); tst(sp, Operand(frame_alignment_mask));
b(eq, &alignment_as_expected); b(eq, &alignment_as_expected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment