diff options
| author | 2012-03-27 16:13:20 -0700 | |
|---|---|---|
| committer | 2012-03-27 16:17:42 -0700 | |
| commit | 97df07f9d743978909dca40b44f52a652021f8e9 (patch) | |
| tree | 84ab4d762776af5bb7811aeb0f74b52c766f3d60 /src/compiler_llvm/compiler_llvm.cc | |
| parent | 04a2967e9f9375cd8395220f306e7b1a0b7d2b11 (diff) | |
Fix getter/setter special case codegen
The special-purpose code generators for simple methods that get
or set and instance field and then return require that no throws
are possible. The previous code incorrectly relied on the first
argument being a "this" pointer, and thus previously null-checked.
This did not take into account the possibility of a static method
which happened to pass an object referece as it's first argument.
The fix is to avoid making any assumptions, but rather rely
solely on the results of the null-check elimination pass which
will correctly recoginize the "this" case.
Change-Id: Icf001a10a19234cf3f4d87cf1baede93fdf0360c
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
0 files changed, 0 insertions, 0 deletions