OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 15 matching lines...) Expand all Loading... |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_CODE_STUBS_H_ | 28 #ifndef V8_CODE_STUBS_H_ |
29 #define V8_CODE_STUBS_H_ | 29 #define V8_CODE_STUBS_H_ |
30 | 30 |
31 namespace v8 { | 31 namespace v8 { |
32 namespace internal { | 32 namespace internal { |
33 | 33 |
34 // List of code stubs used on all platforms. The order in this list is important | 34 // List of code stubs used on all platforms. The order in this list is important |
35 // as only the stubs up to and including RecordWrite allows nested stub calls. | 35 // as only the stubs up to and including RecordWrite allows nested stub calls. |
36 #define CODE_STUB_LIST_ALL(V) \ | 36 #define CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
37 V(CallFunction) \ | 37 V(CallFunction) \ |
38 V(GenericBinaryOp) \ | 38 V(GenericBinaryOp) \ |
39 V(SmiOp) \ | 39 V(SmiOp) \ |
40 V(Compare) \ | 40 V(Compare) \ |
41 V(RecordWrite) \ | 41 V(RecordWrite) \ |
42 V(ConvertToDouble) \ | 42 V(ConvertToDouble) \ |
43 V(WriteInt32ToHeapNumber) \ | 43 V(WriteInt32ToHeapNumber) \ |
44 V(StackCheck) \ | 44 V(StackCheck) \ |
45 V(UnarySub) \ | 45 V(UnarySub) \ |
46 V(RevertToNumber) \ | 46 V(RevertToNumber) \ |
47 V(ToBoolean) \ | 47 V(ToBoolean) \ |
48 V(Instanceof) \ | 48 V(Instanceof) \ |
49 V(CounterOp) \ | 49 V(CounterOp) \ |
50 V(ArgumentsAccess) \ | 50 V(ArgumentsAccess) \ |
51 V(Runtime) \ | 51 V(Runtime) \ |
52 V(CEntry) \ | 52 V(CEntry) \ |
53 V(JSEntry) | 53 V(JSEntry) |
54 | 54 |
55 // List of code stubs only used on ARM platforms. | 55 // List of code stubs only used on ARM platforms. |
56 #ifdef V8_TARGET_ARCH_ARM | 56 #ifdef V8_TARGET_ARCH_ARM |
57 #define CODE_STUB_LIST_ARM(V) \ | 57 #define CODE_STUB_LIST_ARM(V) \ |
58 V(GetProperty) \ | 58 V(GetProperty) \ |
59 V(SetProperty) \ | 59 V(SetProperty) \ |
60 V(InvokeBuiltin) \ | 60 V(InvokeBuiltin) \ |
61 V(RegExpCEntry) | 61 V(RegExpCEntry) |
62 #else | 62 #else |
63 #define CODE_STUB_LIST_ARM(V) | 63 #define CODE_STUB_LIST_ARM(V) |
64 #endif | 64 #endif |
65 | 65 |
66 // Combined list of code stubs. | 66 // Combined list of code stubs. |
67 #define CODE_STUB_LIST(V) \ | 67 #define CODE_STUB_LIST(V) \ |
68 CODE_STUB_LIST_ALL(V) \ | 68 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
69 CODE_STUB_LIST_ARM(V) | 69 CODE_STUB_LIST_ARM(V) |
70 | 70 |
71 // Stub is base classes of all stubs. | 71 // Stub is base classes of all stubs. |
72 class CodeStub BASE_EMBEDDED { | 72 class CodeStub BASE_EMBEDDED { |
73 public: | 73 public: |
74 enum Major { | 74 enum Major { |
75 #define DEF_ENUM(name) name, | 75 #define DEF_ENUM(name) name, |
76 CODE_STUB_LIST(DEF_ENUM) | 76 CODE_STUB_LIST(DEF_ENUM) |
77 #undef DEF_ENUM | 77 #undef DEF_ENUM |
78 NoCache, // marker for stubs that do custom caching | 78 NoCache, // marker for stubs that do custom caching |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 class MajorKeyBits: public BitField<uint32_t, 0, kMajorBits> {}; | 133 class MajorKeyBits: public BitField<uint32_t, 0, kMajorBits> {}; |
134 class MinorKeyBits: public BitField<uint32_t, kMajorBits, kMinorBits> {}; | 134 class MinorKeyBits: public BitField<uint32_t, kMajorBits, kMinorBits> {}; |
135 | 135 |
136 friend class BreakPointIterator; | 136 friend class BreakPointIterator; |
137 }; | 137 }; |
138 | 138 |
139 } } // namespace v8::internal | 139 } } // namespace v8::internal |
140 | 140 |
141 #endif // V8_CODE_STUBS_H_ | 141 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |