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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { | 602 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { |
603 Generate_JSEntryTrampolineHelper(masm, false); | 603 Generate_JSEntryTrampolineHelper(masm, false); |
604 } | 604 } |
605 | 605 |
606 | 606 |
607 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { | 607 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { |
608 Generate_JSEntryTrampolineHelper(masm, true); | 608 Generate_JSEntryTrampolineHelper(masm, true); |
609 } | 609 } |
610 | 610 |
611 | 611 |
612 void Builtins::Generate_CompileUnoptimized(MacroAssembler* masm) { | 612 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
613 CallRuntimePassFunction(masm, Runtime::kCompileUnoptimized); | 613 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
614 GenerateTailCallToReturnedCode(masm); | 614 GenerateTailCallToReturnedCode(masm); |
615 } | 615 } |
616 | 616 |
617 | 617 |
618 static void CallCompileOptimized(MacroAssembler* masm, | 618 static void CallCompileOptimized(MacroAssembler* masm, |
619 bool concurrent) { | 619 bool concurrent) { |
620 FrameScope scope(masm, StackFrame::INTERNAL); | 620 FrameScope scope(masm, StackFrame::INTERNAL); |
621 // Push a copy of the function onto the stack. | 621 // Push a copy of the function onto the stack. |
622 __ Push(rdi); | 622 __ Push(rdi); |
623 // Function is also the parameter to the runtime call. | 623 // Function is also the parameter to the runtime call. |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 __ bind(&ok); | 1517 __ bind(&ok); |
1518 __ ret(0); | 1518 __ ret(0); |
1519 } | 1519 } |
1520 | 1520 |
1521 | 1521 |
1522 #undef __ | 1522 #undef __ |
1523 | 1523 |
1524 } } // namespace v8::internal | 1524 } } // namespace v8::internal |
1525 | 1525 |
1526 #endif // V8_TARGET_ARCH_X64 | 1526 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |