| 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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/assembler-inl.h" | 7 #include "src/assembler-inl.h" |
| 8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/builtins/builtins-constructor.h" | 10 #include "src/builtins/builtins-constructor.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 Comment cmnt(masm_, "[ Stack check"); | 305 Comment cmnt(masm_, "[ Stack check"); |
| 306 Label ok; | 306 Label ok; |
| 307 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | 307 __ LoadRoot(ip, Heap::kStackLimitRootIndex); |
| 308 __ cmp(sp, Operand(ip)); | 308 __ cmp(sp, Operand(ip)); |
| 309 __ b(hs, &ok); | 309 __ b(hs, &ok); |
| 310 Handle<Code> stack_check = isolate()->builtins()->StackCheck(); | 310 Handle<Code> stack_check = isolate()->builtins()->StackCheck(); |
| 311 masm_->MaybeCheckConstPool(); | 311 masm_->MaybeCheckConstPool(); |
| 312 PredictableCodeSizeScope predictable(masm_); | 312 PredictableCodeSizeScope predictable(masm_); |
| 313 predictable.ExpectSize( | 313 predictable.ExpectSize( |
| 314 masm_->CallSize(stack_check, RelocInfo::CODE_TARGET)); | 314 masm_->CallSize(stack_check, RelocInfo::CODE_TARGET)); |
| 315 __ Call(stack_check, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al, | 315 __ Call(stack_check, RelocInfo::CODE_TARGET, al, CAN_INLINE_TARGET_ADDRESS, |
| 316 CAN_INLINE_TARGET_ADDRESS, false); | 316 false); |
| 317 __ bind(&ok); | 317 __ bind(&ok); |
| 318 } | 318 } |
| 319 | 319 |
| 320 { | 320 { |
| 321 Comment cmnt(masm_, "[ Body"); | 321 Comment cmnt(masm_, "[ Body"); |
| 322 DCHECK(loop_depth() == 0); | 322 DCHECK(loop_depth() == 0); |
| 323 VisitStatements(literal()->body()); | 323 VisitStatements(literal()->body()); |
| 324 DCHECK(loop_depth() == 0); | 324 DCHECK(loop_depth() == 0); |
| 325 } | 325 } |
| 326 | 326 |
| (...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2729 DCHECK(interrupt_address == | 2729 DCHECK(interrupt_address == |
| 2730 isolate->builtins()->OnStackReplacement()->entry()); | 2730 isolate->builtins()->OnStackReplacement()->entry()); |
| 2731 return ON_STACK_REPLACEMENT; | 2731 return ON_STACK_REPLACEMENT; |
| 2732 } | 2732 } |
| 2733 | 2733 |
| 2734 | 2734 |
| 2735 } // namespace internal | 2735 } // namespace internal |
| 2736 } // namespace v8 | 2736 } // namespace v8 |
| 2737 | 2737 |
| 2738 #endif // V8_TARGET_ARCH_ARM | 2738 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |