OLD | NEW |
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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1004 |
1005 void RegExpMacroAssemblerARM::CallCheckStackGuardState(Register scratch) { | 1005 void RegExpMacroAssemblerARM::CallCheckStackGuardState(Register scratch) { |
1006 __ PrepareCallCFunction(3, scratch); | 1006 __ PrepareCallCFunction(3, scratch); |
1007 | 1007 |
1008 // RegExp code frame pointer. | 1008 // RegExp code frame pointer. |
1009 __ mov(r2, frame_pointer()); | 1009 __ mov(r2, frame_pointer()); |
1010 // Code* of self. | 1010 // Code* of self. |
1011 __ mov(r1, Operand(masm_->CodeObject())); | 1011 __ mov(r1, Operand(masm_->CodeObject())); |
1012 | 1012 |
1013 // We need to make room for the return address on the stack. | 1013 // We need to make room for the return address on the stack. |
1014 int stack_alignment = OS::ActivationFrameAlignment(); | 1014 int stack_alignment = base::OS::ActivationFrameAlignment(); |
1015 ASSERT(IsAligned(stack_alignment, kPointerSize)); | 1015 ASSERT(IsAligned(stack_alignment, kPointerSize)); |
1016 __ sub(sp, sp, Operand(stack_alignment)); | 1016 __ sub(sp, sp, Operand(stack_alignment)); |
1017 | 1017 |
1018 // r0 will point to the return address, placed by DirectCEntry. | 1018 // r0 will point to the return address, placed by DirectCEntry. |
1019 __ mov(r0, sp); | 1019 __ mov(r0, sp); |
1020 | 1020 |
1021 ExternalReference stack_guard_check = | 1021 ExternalReference stack_guard_check = |
1022 ExternalReference::re_check_stack_guard_state(isolate()); | 1022 ExternalReference::re_check_stack_guard_state(isolate()); |
1023 __ mov(ip, Operand(stack_guard_check)); | 1023 __ mov(ip, Operand(stack_guard_check)); |
1024 DirectCEntryStub stub(isolate()); | 1024 DirectCEntryStub stub(isolate()); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 } | 1270 } |
1271 | 1271 |
1272 | 1272 |
1273 #undef __ | 1273 #undef __ |
1274 | 1274 |
1275 #endif // V8_INTERPRETED_REGEXP | 1275 #endif // V8_INTERPRETED_REGEXP |
1276 | 1276 |
1277 }} // namespace v8::internal | 1277 }} // namespace v8::internal |
1278 | 1278 |
1279 #endif // V8_TARGET_ARCH_ARM | 1279 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |