OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Combined list of code stubs. | 123 // Combined list of code stubs. |
124 #define CODE_STUB_LIST(V) \ | 124 #define CODE_STUB_LIST(V) \ |
125 CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 125 CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
126 CODE_STUB_LIST_ARM(V) \ | 126 CODE_STUB_LIST_ARM(V) \ |
127 CODE_STUB_LIST_MIPS(V) | 127 CODE_STUB_LIST_MIPS(V) |
128 | 128 |
129 // Stub is base classes of all stubs. | 129 // Stub is base classes of all stubs. |
130 class CodeStub BASE_EMBEDDED { | 130 class CodeStub BASE_EMBEDDED { |
131 public: | 131 public: |
132 enum Major { | 132 enum Major { |
| 133 UninitializedMajorKey = 0, |
133 #define DEF_ENUM(name) name, | 134 #define DEF_ENUM(name) name, |
134 CODE_STUB_LIST(DEF_ENUM) | 135 CODE_STUB_LIST(DEF_ENUM) |
135 #undef DEF_ENUM | 136 #undef DEF_ENUM |
136 NoCache, // marker for stubs that do custom caching | 137 NoCache, // marker for stubs that do custom caching |
137 NUMBER_OF_IDS | 138 NUMBER_OF_IDS |
138 }; | 139 }; |
139 | 140 |
140 // Retrieve the code for the stub. Generate the code if needed. | 141 // Retrieve the code for the stub. Generate the code if needed. |
141 Handle<Code> GetCode(Isolate* isolate); | 142 Handle<Code> GetCode(Isolate* isolate); |
142 | 143 |
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2348 int MinorKey() { return 0; } | 2349 int MinorKey() { return 0; } |
2349 | 2350 |
2350 void Generate(MacroAssembler* masm); | 2351 void Generate(MacroAssembler* masm); |
2351 | 2352 |
2352 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2353 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
2353 }; | 2354 }; |
2354 | 2355 |
2355 } } // namespace v8::internal | 2356 } } // namespace v8::internal |
2356 | 2357 |
2357 #endif // V8_CODE_STUBS_H_ | 2358 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |