Fix native arm build.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 2 Sep 2014 13:55:41 +0000 (13:55 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 2 Sep 2014 13:55:41 +0000 (13:55 +0000)
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

src/arm/code-stubs-arm.cc
src/arm/macro-assembler-arm.cc

index 31355b686539571edf40ee478c0413ff93fd6a67..d6fef018048e4f544f495f1d004406101ad41c6d 100644 (file)
@@ -1159,7 +1159,7 @@ void CEntryStub::Generate(MacroAssembler* masm) {
   if (FLAG_debug_code) {
     if (frame_alignment > kPointerSize) {
       Label alignment_as_expected;
-      DCHECK(IsPowerOf2(frame_alignment));
+      DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
       __ tst(sp, Operand(frame_alignment_mask));
       __ b(eq, &alignment_as_expected);
       // Don't use Check here, as it will call Runtime_Abort re-entering here.
index 8d0ee0c7a9135e818a7a04cdb32815e1eca75a02..619c9446009e54f4323b5ba3af53eb671f66fc33 100644 (file)
@@ -3568,7 +3568,7 @@ void MacroAssembler::CallCFunctionHelper(Register function,
     int frame_alignment = base::OS::ActivationFrameAlignment();
     int frame_alignment_mask = frame_alignment - 1;
     if (frame_alignment > kPointerSize) {
-      DCHECK(IsPowerOf2(frame_alignment));
+      DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
       Label alignment_as_expected;
       tst(sp, Operand(frame_alignment_mask));
       b(eq, &alignment_as_expected);