| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 // Compute the target address = code_obj + header_size + osr_offset | 1387 // Compute the target address = code_obj + header_size + osr_offset |
| 1388 // <entry_addr> = <code_obj> + #header_size + <osr_offset> | 1388 // <entry_addr> = <code_obj> + #header_size + <osr_offset> |
| 1389 __ Add(x0, x0, x1); | 1389 __ Add(x0, x0, x1); |
| 1390 __ Add(lr, x0, Code::kHeaderSize - kHeapObjectTag); | 1390 __ Add(lr, x0, Code::kHeaderSize - kHeapObjectTag); |
| 1391 | 1391 |
| 1392 // And "return" to the OSR entry point of the function. | 1392 // And "return" to the OSR entry point of the function. |
| 1393 __ Ret(); | 1393 __ Ret(); |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 | 1396 |
| 1397 void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { | |
| 1398 // We check the stack limit as indicator that recompilation might be done. | |
| 1399 Label ok; | |
| 1400 __ CompareRoot(jssp, Heap::kStackLimitRootIndex); | |
| 1401 __ B(hs, &ok); | |
| 1402 { | |
| 1403 FrameScope scope(masm, StackFrame::INTERNAL); | |
| 1404 __ CallRuntime(Runtime::kStackGuard); | |
| 1405 } | |
| 1406 __ Jump(masm->isolate()->builtins()->OnStackReplacement(), | |
| 1407 RelocInfo::CODE_TARGET); | |
| 1408 | |
| 1409 __ Bind(&ok); | |
| 1410 __ Ret(); | |
| 1411 } | |
| 1412 | |
| 1413 | |
| 1414 // static | 1397 // static |
| 1415 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, | 1398 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
| 1416 int field_index) { | 1399 int field_index) { |
| 1417 // ----------- S t a t e ------------- | 1400 // ----------- S t a t e ------------- |
| 1418 // -- lr : return address | 1401 // -- lr : return address |
| 1419 // -- jssp[0] : receiver | 1402 // -- jssp[0] : receiver |
| 1420 // ----------------------------------- | 1403 // ----------------------------------- |
| 1421 ASM_LOCATION("Builtins::Generate_DatePrototype_GetField"); | 1404 ASM_LOCATION("Builtins::Generate_DatePrototype_GetField"); |
| 1422 | 1405 |
| 1423 // 1. Pop receiver into x0 and check that it's actually a JSDate object. | 1406 // 1. Pop receiver into x0 and check that it's actually a JSDate object. |
| (...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 } | 2692 } |
| 2710 } | 2693 } |
| 2711 | 2694 |
| 2712 | 2695 |
| 2713 #undef __ | 2696 #undef __ |
| 2714 | 2697 |
| 2715 } // namespace internal | 2698 } // namespace internal |
| 2716 } // namespace v8 | 2699 } // namespace v8 |
| 2717 | 2700 |
| 2718 #endif // V8_TARGET_ARCH_ARM | 2701 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |