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

Side by Side Diff: src/objects-inl.h

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/objects.cc ('k') | src/ppc/builtins-ppc.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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5841 matching lines...) Expand 10 before | Expand all | Expand 10 after
5852 kScopeInfoOffset, 5852 kScopeInfoOffset,
5853 reinterpret_cast<Object*>(value), 5853 reinterpret_cast<Object*>(value),
5854 mode); 5854 mode);
5855 } 5855 }
5856 5856
5857 5857
5858 bool SharedFunctionInfo::is_compiled() { 5858 bool SharedFunctionInfo::is_compiled() {
5859 Builtins* builtins = GetIsolate()->builtins(); 5859 Builtins* builtins = GetIsolate()->builtins();
5860 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent)); 5860 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent));
5861 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized)); 5861 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized));
5862 DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline));
5862 return code() != builtins->builtin(Builtins::kCompileLazy); 5863 return code() != builtins->builtin(Builtins::kCompileLazy);
5863 } 5864 }
5864 5865
5865 5866
5866 bool SharedFunctionInfo::has_simple_parameters() { 5867 bool SharedFunctionInfo::has_simple_parameters() {
5867 return scope_info()->HasSimpleParameters(); 5868 return scope_info()->HasSimpleParameters();
5868 } 5869 }
5869 5870
5870 5871
5871 bool SharedFunctionInfo::HasDebugInfo() { 5872 bool SharedFunctionInfo::HasDebugInfo() {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
6047 6048
6048 bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const { 6049 bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const {
6049 return optimized_code_map() == GetHeap()->cleared_optimized_code_map(); 6050 return optimized_code_map() == GetHeap()->cleared_optimized_code_map();
6050 } 6051 }
6051 6052
6052 6053
6053 bool JSFunction::IsOptimized() { 6054 bool JSFunction::IsOptimized() {
6054 return code()->kind() == Code::OPTIMIZED_FUNCTION; 6055 return code()->kind() == Code::OPTIMIZED_FUNCTION;
6055 } 6056 }
6056 6057
6058 bool JSFunction::IsMarkedForBaseline() {
6059 return code() ==
6060 GetIsolate()->builtins()->builtin(Builtins::kCompileBaseline);
6061 }
6057 6062
6058 bool JSFunction::IsMarkedForOptimization() { 6063 bool JSFunction::IsMarkedForOptimization() {
6059 return code() == GetIsolate()->builtins()->builtin( 6064 return code() == GetIsolate()->builtins()->builtin(
6060 Builtins::kCompileOptimized); 6065 Builtins::kCompileOptimized);
6061 } 6066 }
6062 6067
6063 6068
6064 bool JSFunction::IsMarkedForConcurrentOptimization() { 6069 bool JSFunction::IsMarkedForConcurrentOptimization() {
6065 return code() == GetIsolate()->builtins()->builtin( 6070 return code() == GetIsolate()->builtins()->builtin(
6066 Builtins::kCompileOptimizedConcurrent); 6071 Builtins::kCompileOptimizedConcurrent);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
6212 DCHECK(!prototype->IsMap()); 6217 DCHECK(!prototype->IsMap());
6213 return prototype; 6218 return prototype;
6214 } 6219 }
6215 return instance_prototype(); 6220 return instance_prototype();
6216 } 6221 }
6217 6222
6218 6223
6219 bool JSFunction::is_compiled() { 6224 bool JSFunction::is_compiled() {
6220 Builtins* builtins = GetIsolate()->builtins(); 6225 Builtins* builtins = GetIsolate()->builtins();
6221 return code() != builtins->builtin(Builtins::kCompileLazy) && 6226 return code() != builtins->builtin(Builtins::kCompileLazy) &&
6227 code() != builtins->builtin(Builtins::kCompileBaseline) &&
6222 code() != builtins->builtin(Builtins::kCompileOptimized) && 6228 code() != builtins->builtin(Builtins::kCompileOptimized) &&
6223 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent); 6229 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent);
6224 } 6230 }
6225 6231
6226 6232
6227 int JSFunction::NumberOfLiterals() { 6233 int JSFunction::NumberOfLiterals() {
6228 return literals()->length(); 6234 return literals()->length();
6229 } 6235 }
6230 6236
6231 6237
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
7818 #undef WRITE_INT64_FIELD 7824 #undef WRITE_INT64_FIELD
7819 #undef READ_BYTE_FIELD 7825 #undef READ_BYTE_FIELD
7820 #undef WRITE_BYTE_FIELD 7826 #undef WRITE_BYTE_FIELD
7821 #undef NOBARRIER_READ_BYTE_FIELD 7827 #undef NOBARRIER_READ_BYTE_FIELD
7822 #undef NOBARRIER_WRITE_BYTE_FIELD 7828 #undef NOBARRIER_WRITE_BYTE_FIELD
7823 7829
7824 } // namespace internal 7830 } // namespace internal
7825 } // namespace v8 7831 } // namespace v8
7826 7832
7827 #endif // V8_OBJECTS_INL_H_ 7833 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698