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

Side by Side Diff: src/runtime/runtime.h

Issue 1553703002: [runtime] TailCallRuntime and CallRuntime should use default argument counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-12-29_TailCallRuntime_default_result_size_1_1550923002
Patch Set: Created 4 years, 11 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
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 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/unicode.h" 10 #include "src/unicode.h"
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 1020
1021 1021
1022 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 1022 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
1023 F(LoadLookupSlot, 2, 2) \ 1023 F(LoadLookupSlot, 2, 2) \
1024 F(LoadLookupSlotNoReferenceError, 2, 2) 1024 F(LoadLookupSlotNoReferenceError, 2, 2)
1025 1025
1026 1026
1027 // Most intrinsics are implemented in the runtime/ directory, but ICs are 1027 // Most intrinsics are implemented in the runtime/ directory, but ICs are
1028 // implemented in ic.cc for now. 1028 // implemented in ic.cc for now.
1029 #define FOR_EACH_INTRINSIC_IC(F) \ 1029 #define FOR_EACH_INTRINSIC_IC(F) \
1030 F(LoadIC_Miss, 3, 1) \ 1030 F(BinaryOpIC_Miss, 2, 1) \
1031 F(KeyedLoadIC_Miss, 3, 1) \ 1031 F(BinaryOpIC_MissWithAllocationSite, 3, 1) \
1032 F(CallIC_Miss, 3, 1) \ 1032 F(CallIC_Miss, 3, 1) \
1033 F(StoreIC_Miss, 3, 1) \ 1033 F(CompareIC_Miss, 3, 1) \
1034 F(StoreIC_Slow, 3, 1) \ 1034 F(CompareNilIC_Miss, 1, 1) \
1035 F(KeyedStoreIC_Miss, 3, 1) \ 1035 F(ElementsTransitionAndStoreIC_Miss, 5, 1) \
1036 F(KeyedStoreIC_Slow, 3, 1) \ 1036 F(KeyedLoadIC_Miss, 4, 1) \
1037 F(KeyedLoadIC_MissFromStubFailure, 4, 1) \
1038 F(KeyedStoreIC_Miss, 5, 1) \
1039 F(KeyedStoreIC_MissFromStubFailure, 5, 1) \
1040 F(KeyedStoreIC_Slow, 5, 1) \
1041 F(LoadElementWithInterceptor, 2, 1) \
1042 F(LoadIC_Miss, 4, 1) \
1043 F(LoadIC_MissFromStubFailure, 4, 1) \
1044 F(LoadPropertyWithInterceptor, 3, 1) \
1045 F(LoadPropertyWithInterceptorOnly, 3, 1) \
1037 F(StoreCallbackProperty, 5, 1) \ 1046 F(StoreCallbackProperty, 5, 1) \
1038 F(LoadPropertyWithInterceptorOnly, 3, 1) \ 1047 F(StoreIC_Miss, 5, 1) \
1039 F(LoadPropertyWithInterceptor, 3, 1) \ 1048 F(StoreIC_MissFromStubFailure, 5, 1) \
1040 F(LoadElementWithInterceptor, 2, 1) \ 1049 F(StoreIC_Slow, 5, 1) \
1041 F(StorePropertyWithInterceptor, 3, 1) \ 1050 F(StorePropertyWithInterceptor, 3, 1) \
1042 F(CompareIC_Miss, 3, 1) \
1043 F(BinaryOpIC_Miss, 2, 1) \
1044 F(CompareNilIC_Miss, 1, 1) \
1045 F(Unreachable, 0, 1) \
1046 F(ToBooleanIC_Miss, 1, 1) \ 1051 F(ToBooleanIC_Miss, 1, 1) \
1047 F(KeyedLoadIC_MissFromStubFailure, 4, 1) \ 1052 F(Unreachable, 0, 1)
1048 F(KeyedStoreIC_MissFromStubFailure, 3, 1) \
1049 F(StoreIC_MissFromStubFailure, 3, 1) \
1050 F(ElementsTransitionAndStoreIC_Miss, 4, 1) \
1051 F(BinaryOpIC_MissWithAllocationSite, 3, 1) \
1052 F(LoadIC_MissFromStubFailure, 0, 1)
Camillo Bruni 2015/12/30 13:31:47 Updated some default argument counts + sorted the
1053 1053
1054 1054
1055 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \ 1055 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \
1056 FOR_EACH_INTRINSIC_IC(F) \ 1056 FOR_EACH_INTRINSIC_IC(F) \
1057 FOR_EACH_INTRINSIC_ARRAY(F) \ 1057 FOR_EACH_INTRINSIC_ARRAY(F) \
1058 FOR_EACH_INTRINSIC_ATOMICS(F) \ 1058 FOR_EACH_INTRINSIC_ATOMICS(F) \
1059 FOR_EACH_INTRINSIC_CLASSES(F) \ 1059 FOR_EACH_INTRINSIC_CLASSES(F) \
1060 FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 1060 FOR_EACH_INTRINSIC_COLLECTIONS(F) \
1061 FOR_EACH_INTRINSIC_COMPILER(F) \ 1061 FOR_EACH_INTRINSIC_COMPILER(F) \
1062 FOR_EACH_INTRINSIC_DATE(F) \ 1062 FOR_EACH_INTRINSIC_DATE(F) \
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 1245
1246 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1246 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1247 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1247 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1248 STATIC_ASSERT(LANGUAGE_END == 3); 1248 STATIC_ASSERT(LANGUAGE_END == 3);
1249 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1249 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1250 1250
1251 } // namespace internal 1251 } // namespace internal
1252 } // namespace v8 1252 } // namespace v8
1253 1253
1254 #endif // V8_RUNTIME_RUNTIME_H_ 1254 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698