| 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/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 | 1423 |
| 1424 // Compute the target address = code start + osr_offset | 1424 // Compute the target address = code start + osr_offset |
| 1425 __ add(lr, r0, Operand::SmiUntag(r1)); | 1425 __ add(lr, r0, Operand::SmiUntag(r1)); |
| 1426 | 1426 |
| 1427 // And "return" to the OSR entry point of the function. | 1427 // And "return" to the OSR entry point of the function. |
| 1428 __ Ret(); | 1428 __ Ret(); |
| 1429 } | 1429 } |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 | 1432 |
| 1433 void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { | |
| 1434 // We check the stack limit as indicator that recompilation might be done. | |
| 1435 Label ok; | |
| 1436 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | |
| 1437 __ cmp(sp, Operand(ip)); | |
| 1438 __ b(hs, &ok); | |
| 1439 { | |
| 1440 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | |
| 1441 __ CallRuntime(Runtime::kStackGuard); | |
| 1442 } | |
| 1443 __ Jump(masm->isolate()->builtins()->OnStackReplacement(), | |
| 1444 RelocInfo::CODE_TARGET); | |
| 1445 | |
| 1446 __ bind(&ok); | |
| 1447 __ Ret(); | |
| 1448 } | |
| 1449 | |
| 1450 | |
| 1451 // static | 1433 // static |
| 1452 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, | 1434 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
| 1453 int field_index) { | 1435 int field_index) { |
| 1454 // ----------- S t a t e ------------- | 1436 // ----------- S t a t e ------------- |
| 1455 // -- lr : return address | 1437 // -- lr : return address |
| 1456 // -- sp[0] : receiver | 1438 // -- sp[0] : receiver |
| 1457 // ----------------------------------- | 1439 // ----------------------------------- |
| 1458 | 1440 |
| 1459 // 1. Pop receiver into r0 and check that it's actually a JSDate object. | 1441 // 1. Pop receiver into r0 and check that it's actually a JSDate object. |
| 1460 Label receiver_not_date; | 1442 Label receiver_not_date; |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 } | 2549 } |
| 2568 } | 2550 } |
| 2569 | 2551 |
| 2570 | 2552 |
| 2571 #undef __ | 2553 #undef __ |
| 2572 | 2554 |
| 2573 } // namespace internal | 2555 } // namespace internal |
| 2574 } // namespace v8 | 2556 } // namespace v8 |
| 2575 | 2557 |
| 2576 #endif // V8_TARGET_ARCH_ARM | 2558 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |