1. 10 Mar, 2011 3 commits
    • Dan Bornstein's avatar
      A bit of libdex spring cleaning. · 9ea32b0a
      Dan Bornstein authored
      Give the UTF-8 parsing/validation code and the debug info decoder
      their own files in libdex. Also, moved the random utility
      dexRoundUpPower2() so it wasn't in the middle of unrelated stuff
      (though maybe it doesn't want to stay in DexFile.c at all).
      
      Change-Id: I115447e49904e2440dd538b1df90616ea95707a9
      9ea32b0a
    • Dan Bornstein's avatar
      af06c40f
    • Dan Bornstein's avatar
      Better class name validation. · d4bd92bd
      Dan Bornstein authored
      I made a combined class name / type descriptor validator in
      libdex extracted from the original type descriptor validator,
      made the original validator use that, and added another public
      function to do class name validation.
      
      The two not-quite-validators in CheckJNI.c and InternalNative.c
      now do proper checking.
      
      Change-Id: I0f25e3efb439da065d92596197d219792d5a46b1
      d4bd92bd
  2. 09 Mar, 2011 6 commits
  3. 08 Mar, 2011 13 commits
  4. 07 Mar, 2011 2 commits
    • Dan Bornstein's avatar
      Consistency in exception throws. · 47f58250
      Dan Bornstein authored
      Make the messages that consist of a series of values consistently use
      semicolons between the values, and make the call order for exception
      throws that take both "info about a thing" as well as "info about a
      use of that thing" take the "info about a thing" argument first.
      
      Practical upshot: Adding a second semicolon in the message for
      StringIndexOutOfBoundsException being thrown for a region, and
      switching the order of arguments of
      dvmThrowArrayIndexOutOfBoundsException().
      
      Bug: 3500987
      Change-Id: I97eb0046ab8997a68e2d6dfde5dbf3d02290c1f7
      47f58250
    • Dan Bornstein's avatar
      Collate more of the low-level class lookups. · 3111b0c8
      Dan Bornstein authored
      I pulled out all the initialization code that I could find that was
      merely looking up class and member names during early VM initialization,
      putting them all in a new file, InitRefs.c. I didn't do any real restructuring
      of the code, though. That will come in a follow-up.
      
      This was instigated by discussion surrounding bug #3500987, but it's not
      directly related to it.
      
      Change-Id: I59e93e552d29a5518f2cc4e1e30c4a8d51750d7b
      3111b0c8
  5. 06 Mar, 2011 1 commit
    • buzbee's avatar
      Fix JUMBO failures · 6a52d1d4
      buzbee authored
      Fix some failures w/ the new Dalvik JUMBO opcodes on the x86 and portable
      interpreters.  These showed up on dalvik/test/089-jumbo-opcodes when
      running with:
      
          run-test --host 089              # x86 host-mode
          run-test --portable --host 089   # portable host-mode
          run-test --portable 089          # on device, portable
      
      Change-Id: I520c8d2e001db95aa7525e4ffde7a81e2e786d38
      6a52d1d4
  6. 05 Mar, 2011 1 commit
  7. 04 Mar, 2011 7 commits
    • Dan Bornstein's avatar
      Rename some of the exception functions. · 0b8b293f
      Dan Bornstein authored
      Since the there is no longer a "ByClass" vs. not distinction, remove
      all the "ByClass"es.
      
      Bug: 3500987
      Change-Id: I6bdaf5a31e8166b47c333dbbb394dc811f321c5d
      0b8b293f
    • Dan Bornstein's avatar
      Clean out now-unused exception code. · 9807b4e9
      Dan Bornstein authored
      We hereby wish a fond farewell to the throw functions that took
      a string name for the exception.
      
      Bug: 3500987
      Change-Id: I869ddc2b4e45d3122859249d4010e452d790fa1f
      9807b4e9
    • Dan Bornstein's avatar
      768ddd4c
    • Andy McFadden's avatar
    • Dan Bornstein's avatar
      More exception rework. · 56da2634
      Dan Bornstein authored
      I believe this change gets rid of the remaining throw calls that
      used quoted strings for the excpetion type argument.
      
      Bug: 3500987
      Change-Id: Id4f905883c1a4e4e5608a2c59986cbd602d416cc
      56da2634
    • Andy McFadden's avatar
      Low-level support for in-memory DEX · 57fd399d
      Andy McFadden authored
      We want to be able to load classes from a DEX file in memory,
      rather than insisting that they always be loaded from disk.  This
      provides the underpinnings.
      
      The code was previously using the "are we in dexopt" flag to
      decide if it needed to mprotect(RW) DEX data before altering it.
      We now have an explicit flag.
      
      Also, scraped off some "opt header flags" checks that never did much.
      
      Bug 1338213
      
      Change-Id: If7128bf246992156662e089a2a87cebf475a6f2a
      57fd399d
    • Dan Bornstein's avatar
      More exception rework. · a3b3512e
      Dan Bornstein authored
      This includes banishing dvmThrowExceptionWithClassMessage(), in favor
      of the "ByClass" version, as well as making the verification error
      throwing code use class objects.
      
      Bug: 3500987
      Change-Id: I1d63cec0ffaf3a0ad17e9304ba6a21fe51072fc7
      a3b3512e
  8. 03 Mar, 2011 7 commits