Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/x64/builtins-x64.cc

Issue 1903273004: [compiler] Add baseline tier to compilation pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/s390/builtins-s390.cc ('k') | src/x87/builtins-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 // Yes, install the full code. 1026 // Yes, install the full code.
1027 __ leap(entry, FieldOperand(entry, Code::kHeaderSize)); 1027 __ leap(entry, FieldOperand(entry, Code::kHeaderSize));
1028 __ movp(FieldOperand(closure, JSFunction::kCodeEntryOffset), entry); 1028 __ movp(FieldOperand(closure, JSFunction::kCodeEntryOffset), entry);
1029 __ RecordWriteCodeEntryField(closure, entry, r15); 1029 __ RecordWriteCodeEntryField(closure, entry, r15);
1030 __ jmp(entry); 1030 __ jmp(entry);
1031 1031
1032 __ bind(&gotta_call_runtime); 1032 __ bind(&gotta_call_runtime);
1033 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); 1033 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy);
1034 } 1034 }
1035 1035
1036 void Builtins::Generate_CompileBaseline(MacroAssembler* masm) {
1037 GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline);
1038 }
1036 1039
1037 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { 1040 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) {
1038 GenerateTailCallToReturnedCode(masm, 1041 GenerateTailCallToReturnedCode(masm,
1039 Runtime::kCompileOptimized_NotConcurrent); 1042 Runtime::kCompileOptimized_NotConcurrent);
1040 } 1043 }
1041 1044
1042 1045
1043 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { 1046 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) {
1044 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent); 1047 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent);
1045 } 1048 }
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2917 __ ret(0); 2920 __ ret(0);
2918 } 2921 }
2919 2922
2920 2923
2921 #undef __ 2924 #undef __
2922 2925
2923 } // namespace internal 2926 } // namespace internal
2924 } // namespace v8 2927 } // namespace v8
2925 2928
2926 #endif // V8_TARGET_ARCH_X64 2929 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/s390/builtins-s390.cc ('k') | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698