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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 533653003: Fix native arm build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/arm/macro-assembler-arm.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 // r5: pointer to builtin function (C callee-saved) 1152 // r5: pointer to builtin function (C callee-saved)
1153 1153
1154 // Result returned in r0 or r0+r1 by default. 1154 // Result returned in r0 or r0+r1 by default.
1155 1155
1156 #if V8_HOST_ARCH_ARM 1156 #if V8_HOST_ARCH_ARM
1157 int frame_alignment = MacroAssembler::ActivationFrameAlignment(); 1157 int frame_alignment = MacroAssembler::ActivationFrameAlignment();
1158 int frame_alignment_mask = frame_alignment - 1; 1158 int frame_alignment_mask = frame_alignment - 1;
1159 if (FLAG_debug_code) { 1159 if (FLAG_debug_code) {
1160 if (frame_alignment > kPointerSize) { 1160 if (frame_alignment > kPointerSize) {
1161 Label alignment_as_expected; 1161 Label alignment_as_expected;
1162 DCHECK(IsPowerOf2(frame_alignment)); 1162 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment));
1163 __ tst(sp, Operand(frame_alignment_mask)); 1163 __ tst(sp, Operand(frame_alignment_mask));
1164 __ b(eq, &alignment_as_expected); 1164 __ b(eq, &alignment_as_expected);
1165 // Don't use Check here, as it will call Runtime_Abort re-entering here. 1165 // Don't use Check here, as it will call Runtime_Abort re-entering here.
1166 __ stop("Unexpected alignment"); 1166 __ stop("Unexpected alignment");
1167 __ bind(&alignment_as_expected); 1167 __ bind(&alignment_as_expected);
1168 } 1168 }
1169 } 1169 }
1170 #endif 1170 #endif
1171 1171
1172 // Call C built-in. 1172 // Call C built-in.
(...skipping 3681 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 MemOperand(fp, 6 * kPointerSize), 4854 MemOperand(fp, 6 * kPointerSize),
4855 NULL); 4855 NULL);
4856 } 4856 }
4857 4857
4858 4858
4859 #undef __ 4859 #undef __
4860 4860
4861 } } // namespace v8::internal 4861 } } // namespace v8::internal
4862 4862
4863 #endif // V8_TARGET_ARCH_ARM 4863 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698