blob: bad83359d75eeafa3aaafaa5695e0ac09844d2fe [file] [log] [blame]
Vladimir Markobe0e5462014-02-26 11:24:15 +00001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_COMPILER_DRIVER_COMPILER_DRIVER_INL_H_
18#define ART_COMPILER_DRIVER_COMPILER_DRIVER_INL_H_
19
20#include "compiler_driver.h"
Mingyao Yang98d1cc82014-05-15 17:02:16 -070021
Mathieu Chartierc7853442015-03-27 14:35:38 -070022#include "art_field-inl.h"
Andreas Gampe53c913b2014-08-12 23:19:23 -070023#include "dex_compilation_unit.h"
Vladimir Markof096aad2014-01-23 15:51:58 +000024#include "mirror/art_method-inl.h"
Vladimir Markobe0e5462014-02-26 11:24:15 +000025#include "mirror/class_loader.h"
Vladimir Markof096aad2014-01-23 15:51:58 +000026#include "mirror/dex_cache-inl.h"
Vladimir Markobe0e5462014-02-26 11:24:15 +000027#include "scoped_thread_state_change.h"
Mathieu Chartiereb8167a2014-05-07 15:43:14 -070028#include "handle_scope-inl.h"
Vladimir Markobe0e5462014-02-26 11:24:15 +000029
30namespace art {
31
32inline mirror::DexCache* CompilerDriver::GetDexCache(const DexCompilationUnit* mUnit) {
33 return mUnit->GetClassLinker()->FindDexCache(*mUnit->GetDexFile());
34}
35
36inline mirror::ClassLoader* CompilerDriver::GetClassLoader(ScopedObjectAccess& soa,
37 const DexCompilationUnit* mUnit) {
38 return soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader());
39}
40
Nicolas Geoffray9437b782015-03-25 10:08:51 +000041inline mirror::Class* CompilerDriver::ResolveClass(
42 const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
43 Handle<mirror::ClassLoader> class_loader, uint16_t cls_index,
44 const DexCompilationUnit* mUnit) {
45 DCHECK_EQ(dex_cache->GetDexFile(), mUnit->GetDexFile());
46 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()));
47 mirror::Class* cls = mUnit->GetClassLinker()->ResolveType(
48 *mUnit->GetDexFile(), cls_index, dex_cache, class_loader);
49 DCHECK_EQ(cls == nullptr, soa.Self()->IsExceptionPending());
50 if (UNLIKELY(cls == nullptr)) {
51 // Clean up any exception left by type resolution.
52 soa.Self()->ClearException();
53 }
54 return cls;
55}
56
Vladimir Markobe0e5462014-02-26 11:24:15 +000057inline mirror::Class* CompilerDriver::ResolveCompilingMethodsClass(
Nicolas Geoffraye5038322014-07-04 09:41:32 +010058 const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
Mathieu Chartier0cd81352014-05-22 16:48:55 -070059 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit) {
Mathieu Chartiereb8167a2014-05-07 15:43:14 -070060 DCHECK_EQ(dex_cache->GetDexFile(), mUnit->GetDexFile());
61 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()));
Vladimir Markobe0e5462014-02-26 11:24:15 +000062 const DexFile::MethodId& referrer_method_id =
63 mUnit->GetDexFile()->GetMethodId(mUnit->GetDexMethodIndex());
Nicolas Geoffray9437b782015-03-25 10:08:51 +000064 return ResolveClass(soa, dex_cache, class_loader, referrer_method_id.class_idx_, mUnit);
Vladimir Markobe0e5462014-02-26 11:24:15 +000065}
66
Mathieu Chartierc7853442015-03-27 14:35:38 -070067inline ArtField* CompilerDriver::ResolveFieldWithDexFile(
Nicolas Geoffraye5038322014-07-04 09:41:32 +010068 const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
Mathieu Chartiere5f13e52015-02-24 09:37:21 -080069 Handle<mirror::ClassLoader> class_loader, const DexFile* dex_file,
Vladimir Markobe0e5462014-02-26 11:24:15 +000070 uint32_t field_idx, bool is_static) {
Mathieu Chartiere5f13e52015-02-24 09:37:21 -080071 DCHECK_EQ(dex_cache->GetDexFile(), dex_file);
Mathieu Chartierc7853442015-03-27 14:35:38 -070072 ArtField* resolved_field = Runtime::Current()->GetClassLinker()->ResolveField(
Mathieu Chartiere5f13e52015-02-24 09:37:21 -080073 *dex_file, field_idx, dex_cache, class_loader, is_static);
Vladimir Markobe0e5462014-02-26 11:24:15 +000074 DCHECK_EQ(resolved_field == nullptr, soa.Self()->IsExceptionPending());
75 if (UNLIKELY(resolved_field == nullptr)) {
76 // Clean up any exception left by type resolution.
77 soa.Self()->ClearException();
78 return nullptr;
79 }
80 if (UNLIKELY(resolved_field->IsStatic() != is_static)) {
81 // ClassLinker can return a field of the wrong kind directly from the DexCache.
Mathieu Chartier2cebb242015-04-21 16:50:40 -070082 // Silently return null on such incompatible class change.
Vladimir Markobe0e5462014-02-26 11:24:15 +000083 return nullptr;
84 }
85 return resolved_field;
86}
87
Mathieu Chartiere5f13e52015-02-24 09:37:21 -080088inline mirror::DexCache* CompilerDriver::FindDexCache(const DexFile* dex_file) {
89 return Runtime::Current()->GetClassLinker()->FindDexCache(*dex_file);
90}
91
Mathieu Chartierc7853442015-03-27 14:35:38 -070092inline ArtField* CompilerDriver::ResolveField(
Mathieu Chartiere5f13e52015-02-24 09:37:21 -080093 const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
94 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
95 uint32_t field_idx, bool is_static) {
96 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()));
97 return ResolveFieldWithDexFile(soa, dex_cache, class_loader, mUnit->GetDexFile(), field_idx,
98 is_static);
99}
100
Vladimir Markobe0e5462014-02-26 11:24:15 +0000101inline void CompilerDriver::GetResolvedFieldDexFileLocation(
Mathieu Chartierc7853442015-03-27 14:35:38 -0700102 ArtField* resolved_field, const DexFile** declaring_dex_file,
Vladimir Markobe0e5462014-02-26 11:24:15 +0000103 uint16_t* declaring_class_idx, uint16_t* declaring_field_idx) {
104 mirror::Class* declaring_class = resolved_field->GetDeclaringClass();
105 *declaring_dex_file = declaring_class->GetDexCache()->GetDexFile();
106 *declaring_class_idx = declaring_class->GetDexTypeIndex();
107 *declaring_field_idx = resolved_field->GetDexFieldIndex();
108}
109
Mathieu Chartierc7853442015-03-27 14:35:38 -0700110inline bool CompilerDriver::IsFieldVolatile(ArtField* field) {
Vladimir Markobe0e5462014-02-26 11:24:15 +0000111 return field->IsVolatile();
112}
113
Mathieu Chartierc7853442015-03-27 14:35:38 -0700114inline MemberOffset CompilerDriver::GetFieldOffset(ArtField* field) {
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100115 return field->GetOffset();
116}
117
Vladimir Markobe0e5462014-02-26 11:24:15 +0000118inline std::pair<bool, bool> CompilerDriver::IsFastInstanceField(
119 mirror::DexCache* dex_cache, mirror::Class* referrer_class,
Mathieu Chartierc7853442015-03-27 14:35:38 -0700120 ArtField* resolved_field, uint16_t field_idx) {
Vladimir Markobe0e5462014-02-26 11:24:15 +0000121 DCHECK(!resolved_field->IsStatic());
122 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
123 bool fast_get = referrer_class != nullptr &&
124 referrer_class->CanAccessResolvedField(fields_class, resolved_field,
125 dex_cache, field_idx);
126 bool fast_put = fast_get && (!resolved_field->IsFinal() || fields_class == referrer_class);
Vladimir Markobe0e5462014-02-26 11:24:15 +0000127 return std::make_pair(fast_get, fast_put);
128}
129
130inline std::pair<bool, bool> CompilerDriver::IsFastStaticField(
131 mirror::DexCache* dex_cache, mirror::Class* referrer_class,
Mathieu Chartierc7853442015-03-27 14:35:38 -0700132 ArtField* resolved_field, uint16_t field_idx, uint32_t* storage_index) {
Vladimir Markobe0e5462014-02-26 11:24:15 +0000133 DCHECK(resolved_field->IsStatic());
134 if (LIKELY(referrer_class != nullptr)) {
135 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
136 if (fields_class == referrer_class) {
Vladimir Markobe0e5462014-02-26 11:24:15 +0000137 *storage_index = fields_class->GetDexTypeIndex();
Vladimir Markobe0e5462014-02-26 11:24:15 +0000138 return std::make_pair(true, true);
139 }
140 if (referrer_class->CanAccessResolvedField(fields_class, resolved_field,
141 dex_cache, field_idx)) {
142 // We have the resolved field, we must make it into a index for the referrer
143 // in its static storage (which may fail if it doesn't have a slot for it)
144 // TODO: for images we can elide the static storage base null check
145 // if we know there's a non-null entry in the image
146 const DexFile* dex_file = dex_cache->GetDexFile();
147 uint32_t storage_idx = DexFile::kDexNoIndex;
148 if (LIKELY(fields_class->GetDexCache() == dex_cache)) {
149 // common case where the dex cache of both the referrer and the field are the same,
150 // no need to search the dex file
151 storage_idx = fields_class->GetDexTypeIndex();
152 } else {
153 // Search dex file for localized ssb index, may fail if field's class is a parent
154 // of the class mentioned in the dex file and there is no dex cache entry.
Ian Rogers08f1f502014-12-02 15:04:37 -0800155 std::string temp;
Vladimir Markobe0e5462014-02-26 11:24:15 +0000156 const DexFile::StringId* string_id =
Ian Rogers08f1f502014-12-02 15:04:37 -0800157 dex_file->FindStringId(resolved_field->GetDeclaringClass()->GetDescriptor(&temp));
Vladimir Markobe0e5462014-02-26 11:24:15 +0000158 if (string_id != nullptr) {
159 const DexFile::TypeId* type_id =
160 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id));
161 if (type_id != nullptr) {
162 // medium path, needs check of static storage base being initialized
163 storage_idx = dex_file->GetIndexForTypeId(*type_id);
164 }
165 }
166 }
167 if (storage_idx != DexFile::kDexNoIndex) {
Vladimir Markobe0e5462014-02-26 11:24:15 +0000168 *storage_index = storage_idx;
Vladimir Markobe0e5462014-02-26 11:24:15 +0000169 return std::make_pair(true, !resolved_field->IsFinal());
170 }
171 }
172 }
173 // Conservative defaults.
Vladimir Markobe0e5462014-02-26 11:24:15 +0000174 *storage_index = DexFile::kDexNoIndex;
Vladimir Markobe0e5462014-02-26 11:24:15 +0000175 return std::make_pair(false, false);
176}
177
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100178inline bool CompilerDriver::IsStaticFieldInReferrerClass(mirror::Class* referrer_class,
Mathieu Chartierc7853442015-03-27 14:35:38 -0700179 ArtField* resolved_field) {
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100180 DCHECK(resolved_field->IsStatic());
181 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
182 return referrer_class == fields_class;
183}
184
185inline bool CompilerDriver::IsStaticFieldsClassInitialized(mirror::Class* referrer_class,
Mathieu Chartierc7853442015-03-27 14:35:38 -0700186 ArtField* resolved_field) {
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100187 DCHECK(resolved_field->IsStatic());
188 mirror::Class* fields_class = resolved_field->GetDeclaringClass();
189 return fields_class == referrer_class || fields_class->IsInitialized();
190}
191
Vladimir Markof096aad2014-01-23 15:51:58 +0000192inline mirror::ArtMethod* CompilerDriver::ResolveMethod(
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700193 ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
194 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800195 uint32_t method_idx, InvokeType invoke_type, bool check_incompatible_class_change) {
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700196 DCHECK_EQ(dex_cache->GetDexFile(), mUnit->GetDexFile());
197 DCHECK_EQ(class_loader.Get(), soa.Decode<mirror::ClassLoader*>(mUnit->GetClassLoader()));
Vladimir Markof096aad2014-01-23 15:51:58 +0000198 mirror::ArtMethod* resolved_method = mUnit->GetClassLinker()->ResolveMethod(
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700199 *mUnit->GetDexFile(), method_idx, dex_cache, class_loader, NullHandle<mirror::ArtMethod>(),
200 invoke_type);
Vladimir Markof096aad2014-01-23 15:51:58 +0000201 DCHECK_EQ(resolved_method == nullptr, soa.Self()->IsExceptionPending());
202 if (UNLIKELY(resolved_method == nullptr)) {
203 // Clean up any exception left by type resolution.
204 soa.Self()->ClearException();
205 return nullptr;
206 }
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800207 if (check_incompatible_class_change &&
208 UNLIKELY(resolved_method->CheckIncompatibleClassChange(invoke_type))) {
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700209 // Silently return null on incompatible class change.
Vladimir Markof096aad2014-01-23 15:51:58 +0000210 return nullptr;
211 }
212 return resolved_method;
213}
214
215inline void CompilerDriver::GetResolvedMethodDexFileLocation(
216 mirror::ArtMethod* resolved_method, const DexFile** declaring_dex_file,
217 uint16_t* declaring_class_idx, uint16_t* declaring_method_idx) {
218 mirror::Class* declaring_class = resolved_method->GetDeclaringClass();
219 *declaring_dex_file = declaring_class->GetDexCache()->GetDexFile();
220 *declaring_class_idx = declaring_class->GetDexTypeIndex();
221 *declaring_method_idx = resolved_method->GetDexMethodIndex();
222}
223
224inline uint16_t CompilerDriver::GetResolvedMethodVTableIndex(
225 mirror::ArtMethod* resolved_method, InvokeType type) {
226 if (type == kVirtual || type == kSuper) {
227 return resolved_method->GetMethodIndex();
228 } else if (type == kInterface) {
229 return resolved_method->GetDexMethodIndex();
230 } else {
231 return DexFile::kDexNoIndex16;
232 }
233}
234
235inline int CompilerDriver::IsFastInvoke(
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700236 ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
237 Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
Vladimir Markof096aad2014-01-23 15:51:58 +0000238 mirror::Class* referrer_class, mirror::ArtMethod* resolved_method, InvokeType* invoke_type,
239 MethodReference* target_method, const MethodReference* devirt_target,
240 uintptr_t* direct_code, uintptr_t* direct_method) {
241 // Don't try to fast-path if we don't understand the caller's class.
242 if (UNLIKELY(referrer_class == nullptr)) {
243 return 0;
244 }
245 mirror::Class* methods_class = resolved_method->GetDeclaringClass();
246 if (UNLIKELY(!referrer_class->CanAccessResolvedMethod(methods_class, resolved_method,
Mathieu Chartiereb8167a2014-05-07 15:43:14 -0700247 dex_cache.Get(),
Vladimir Markof096aad2014-01-23 15:51:58 +0000248 target_method->dex_method_index))) {
249 return 0;
250 }
Vladimir Markof096aad2014-01-23 15:51:58 +0000251 // Sharpen a virtual call into a direct call when the target is known not to have been
252 // overridden (ie is final).
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800253 const bool same_dex_file = target_method->dex_file == mUnit->GetDexFile();
254 bool can_sharpen_virtual_based_on_type = same_dex_file &&
Vladimir Markof096aad2014-01-23 15:51:58 +0000255 (*invoke_type == kVirtual) && (resolved_method->IsFinal() || methods_class->IsFinal());
256 // For invoke-super, ensure the vtable index will be correct to dispatch in the vtable of
257 // the super class.
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800258 bool can_sharpen_super_based_on_type = same_dex_file && (*invoke_type == kSuper) &&
Vladimir Markof096aad2014-01-23 15:51:58 +0000259 (referrer_class != methods_class) && referrer_class->IsSubClass(methods_class) &&
Mingyao Yang2cdbad72014-07-16 10:44:41 -0700260 resolved_method->GetMethodIndex() < methods_class->GetVTableLength() &&
Vladimir Marko920506d2014-11-18 14:47:31 +0000261 (methods_class->GetVTableEntry(resolved_method->GetMethodIndex()) == resolved_method) &&
262 !resolved_method->IsAbstract();
Vladimir Markof096aad2014-01-23 15:51:58 +0000263
264 if (can_sharpen_virtual_based_on_type || can_sharpen_super_based_on_type) {
265 // Sharpen a virtual call into a direct call. The method_idx is into referrer's
266 // dex cache, check that this resolved method is where we expect it.
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800267 CHECK_EQ(target_method->dex_file, mUnit->GetDexFile());
268 DCHECK_EQ(dex_cache.Get(), mUnit->GetClassLinker()->FindDexCache(*mUnit->GetDexFile()));
269 CHECK_EQ(referrer_class->GetDexCache()->GetResolvedMethod(target_method->dex_method_index),
270 resolved_method) << PrettyMethod(resolved_method);
Vladimir Markof096aad2014-01-23 15:51:58 +0000271 int stats_flags = kFlagMethodResolved;
Igor Murashkind6dee672014-10-16 18:36:16 -0700272 GetCodeAndMethodForDirectCall(/*out*/invoke_type,
273 kDirect, // Sharp type
274 false, // The dex cache is guaranteed to be available
275 referrer_class, resolved_method,
276 /*out*/&stats_flags,
277 target_method,
278 /*out*/direct_code,
279 /*out*/direct_method);
Vladimir Markof096aad2014-01-23 15:51:58 +0000280 DCHECK_NE(*invoke_type, kSuper) << PrettyMethod(resolved_method);
281 if (*invoke_type == kDirect) {
282 stats_flags |= kFlagsMethodResolvedVirtualMadeDirect;
283 }
284 return stats_flags;
285 }
286
287 if ((*invoke_type == kVirtual || *invoke_type == kInterface) && devirt_target != nullptr) {
288 // Post-verification callback recorded a more precise invoke target based on its type info.
289 mirror::ArtMethod* called_method;
290 ClassLinker* class_linker = mUnit->GetClassLinker();
291 if (LIKELY(devirt_target->dex_file == mUnit->GetDexFile())) {
292 called_method = class_linker->ResolveMethod(*devirt_target->dex_file,
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700293 devirt_target->dex_method_index, dex_cache,
294 class_loader, NullHandle<mirror::ArtMethod>(),
295 kVirtual);
Vladimir Markof096aad2014-01-23 15:51:58 +0000296 } else {
Mathieu Chartiereb8167a2014-05-07 15:43:14 -0700297 StackHandleScope<1> hs(soa.Self());
298 Handle<mirror::DexCache> target_dex_cache(
299 hs.NewHandle(class_linker->FindDexCache(*devirt_target->dex_file)));
Vladimir Markof096aad2014-01-23 15:51:58 +0000300 called_method = class_linker->ResolveMethod(*devirt_target->dex_file,
301 devirt_target->dex_method_index,
Mathieu Chartier0cd81352014-05-22 16:48:55 -0700302 target_dex_cache, class_loader,
303 NullHandle<mirror::ArtMethod>(), kVirtual);
Vladimir Markof096aad2014-01-23 15:51:58 +0000304 }
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700305 CHECK(called_method != nullptr);
Vladimir Markof096aad2014-01-23 15:51:58 +0000306 CHECK(!called_method->IsAbstract());
307 int stats_flags = kFlagMethodResolved;
Igor Murashkind6dee672014-10-16 18:36:16 -0700308 GetCodeAndMethodForDirectCall(/*out*/invoke_type,
309 kDirect, // Sharp type
310 true, // The dex cache may not be available
311 referrer_class, called_method,
312 /*out*/&stats_flags,
313 target_method,
314 /*out*/direct_code,
315 /*out*/direct_method);
Vladimir Markof096aad2014-01-23 15:51:58 +0000316 DCHECK_NE(*invoke_type, kSuper);
317 if (*invoke_type == kDirect) {
318 stats_flags |= kFlagsMethodResolvedPreciseTypeDevirtualization;
319 }
320 return stats_flags;
321 }
322
323 if (UNLIKELY(*invoke_type == kSuper)) {
324 // Unsharpened super calls are suspicious so go slow-path.
325 return 0;
326 }
327
328 // Sharpening failed so generate a regular resolved method dispatch.
329 int stats_flags = kFlagMethodResolved;
Igor Murashkind6dee672014-10-16 18:36:16 -0700330 GetCodeAndMethodForDirectCall(/*out*/invoke_type,
331 *invoke_type, // Sharp type
332 false, // The dex cache is guaranteed to be available
333 referrer_class, resolved_method,
334 /*out*/&stats_flags,
335 target_method,
336 /*out*/direct_code,
337 /*out*/direct_method);
Vladimir Markof096aad2014-01-23 15:51:58 +0000338 return stats_flags;
339}
340
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100341inline bool CompilerDriver::IsMethodsClassInitialized(mirror::Class* referrer_class,
342 mirror::ArtMethod* resolved_method) {
Vladimir Marko9820b7c2014-01-02 16:40:37 +0000343 if (!resolved_method->IsStatic()) {
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100344 return true;
Vladimir Marko9820b7c2014-01-02 16:40:37 +0000345 }
346 mirror::Class* methods_class = resolved_method->GetDeclaringClass();
Vladimir Marko66c6d7b2014-10-16 15:41:48 +0100347 return methods_class == referrer_class || methods_class->IsInitialized();
Vladimir Marko9820b7c2014-01-02 16:40:37 +0000348}
349
Vladimir Markobe0e5462014-02-26 11:24:15 +0000350} // namespace art
351
352#endif // ART_COMPILER_DRIVER_COMPILER_DRIVER_INL_H_