[stdlib] Eager non-verbatim bridging
[stdlib] Eager non-verbatim bridging

Trying to lazily compute bridge results and cache them isn't going to
work, because there's no place to efficiently invalidate the cache in
cases like this:

  func f(a: NSArray) {
    for i in 0...a.count {
      println(a.objectAtIndex(i)) // Fills up the cache
    }
  }

  var message = ["hello", "world"]
  f(message)
  message[0] = "goodbye, cruel" // need a cache invalidation or else
  f(message)                    // ...this prints "hello\nworld\n"

Since we need C performance for subscript assignment, we just can't
afford to do anything extra there.

Instead, when the element type isn't "Bridged Verbatim," just eagerly
convert it to an NSArray.

Swift SVN r17722

gregomni/swift,nathawes/swift,codestergit/swift,hughbe/swift,jckarter/swift,kentya6/swift,alblue/swift,kstaring/swift,russbishop/swift,russbishop/swift,benlangmuir/swift,swiftix/swift,sschiau/swift,amraboelela/swift,johnno1962d/swift,slavapestov/swift,SwiftAndroid/swift,ahoppen/swift,hooman/swift,cbrentharris/swift,huonw/swift,zisko/swift,emilstahl/swift,gribozavr/swift,deyton/swift,JGiola/swift,codestergit/swift,milseman/swift,frootloops/swift,uasys/swift,amraboelela/swift,jmgc/swift,djwbrown/swift,Ivacker/swift,practicalswift/swift,deyton/swift,MukeshKumarS/Swift,jmgc/swift,benlangmuir/swift,dduan/swift,milseman/swift,practicalswift/swift,arvedviehweger/swift,allevato/swift,harlanhaskins/swift,rudkx/swift,hughbe/swift,kentya6/swift,natecook1000/swift,OscarSwanros/swift,therealbnut/swift,jopamer/swift,swiftix/swift.old,sschiau/swift,tkremenek/swift,devincoughlin/swift,hooman/swift,uasys/swift,zisko/swift,milseman/swift,brentdax/swift,devincoughlin/swift,xwu/swift,frootloops/swift,kusl/swift,austinzheng/swift,glessard/swift,deyton/swift,slavapestov/swift,russbishop/swift,gmilos/swift,alblue/swift,adrfer/swift,ahoppen/swift,practicalswift/swift,IngmarStein/swift,kentya6/swift,return/swift,felix91gr/swift,MukeshKumarS/Swift,LeoShimonaka/swift,xedin/swift,jckarter/swift,khizkhiz/swift,djwbrown/swift,shajrawi/swift,shajrawi/swift,parkera/swift,gmilos/swift,austinzheng/swift,tinysun212/swift-windows,frootloops/swift,Ivacker/swift,khizkhiz/swift,kperryua/swift,dreamsxin/swift,tinysun212/swift-windows,felix91gr/swift,harlanhaskins/swift,kentya6/swift,gottesmm/swift,shahmishal/swift,frootloops/swift,Jnosh/swift,uasys/swift,devincoughlin/swift,sschiau/swift,gottesmm/swift,return/swift,bitjammer/swift,nathawes/swift,harlanhaskins/swift,OscarSwanros/swift,practicalswift/swift,tkremenek/swift,natecook1000/swift,harlanhaskins/swift,johnno1962d/swift,glessard/swift,cbrentharris/swift,benlangmuir/swift,bitjammer/swift,glessard/swift,devincoughlin/swift,karwa/swift,lorentey/swift,ahoppen/swift,sschiau/swift,rudkx/swift,tkremenek/swift,arvedviehweger/swift,stephentyrone/swift,tjw/swift,jmgc/swift,JGiola/swift,aschwaighofer/swift,gribozavr/swift,parkera/swift,tardieu/swift,ben-ng/swift,natecook1000/swift,ahoppen/swift,khizkhiz/swift,tinysun212/swift-windows,swiftix/swift.old,LeoShimonaka/swift,jmgc/swift,allevato/swift,return/swift,aschwaighofer/swift,Jnosh/swift,russbishop/swift,manavgabhawala/swift,brentdax/swift,roambotics/swift,brentdax/swift,cbrentharris/swift,manavgabhawala/swift,tinysun212/swift-windows,karwa/swift,airspeedswift/swift,tkremenek/swift,dduan/swift,swiftix/swift,bitjammer/swift,lorentey/swift,emilstahl/swift,shajrawi/swift,mightydeveloper/swift,Jnosh/swift,IngmarStein/swift,ken0nek/swift,parkera/swift,devincoughlin/swift,jopamer/swift,xedin/swift,brentdax/swift,shahmishal/swift,allevato/swift,johnno1962d/swift,danielmartin/swift,ben-ng/swift,milseman/swift,CodaFi/swift,emilstahl/swift,therealbnut/swift,djwbrown/swift,brentdax/swift,jopamer/swift,SwiftAndroid/swift,swiftix/swift.old,lorentey/swift,hughbe/swift,SwiftAndroid/swift,modocache/swift,alblue/swift,LeoShimonaka/swift,allevato/swift,swiftix/swift.old,CodaFi/swift,danielmartin/swift,kperryua/swift,allevato/swift,atrick/swift,CodaFi/swift,ben-ng/swift,sschiau/swift,ben-ng/swift,nathawes/swift,lorentey/swift,mightydeveloper/swift,tinysun212/swift-windows,calebd/swift,mightydeveloper/swift,MukeshKumarS/Swift,gregomni/swift,JaSpa/swift,arvedviehweger/swift,hughbe/swift,airspeedswift/swift,lorentey/swift,Jnosh/swift,sdulal/swift,huonw/swift,glessard/swift,jopamer/swift,apple/swift,aschwaighofer/swift,kstaring/swift,return/swift,zisko/swift,SwiftAndroid/swift,IngmarStein/swift,bitjammer/swift,SwiftAndroid/swift,stephentyrone/swift,ken0nek/swift,OscarSwanros/swift,calebd/swift,swiftix/swift,MukeshKumarS/Swift,KrishMunot/swift,jtbandes/swift,OscarSwanros/swift,felix91gr/swift,nathawes/swift,modocache/swift,manavgabhawala/swift,roambotics/swift,Jnosh/swift,shajrawi/swift,jopamer/swift,jckarter/swift,karwa/swift,jmgc/swift,IngmarStein/swift,austinzheng/swift,tjw/swift,stephentyrone/swift,lorentey/swift,slavapestov/swift,manavgabhawala/swift,parkera/swift,aschwaighofer/swift,gribozavr/swift,airspeedswift/swift,JGiola/swift,benlangmuir/swift,JGiola/swift,alblue/swift,mightydeveloper/swift,gregomni/swift,apple/swift,kstaring/swift,djwbrown/swift,tardieu/swift,adrfer/swift,tardieu/swift,glessard/swift,xedin/swift,jckarter/swift,danielmartin/swift,CodaFi/swift,johnno1962d/swift,khizkhiz/swift,swiftix/swift.old,LeoShimonaka/swift,kperryua/swift,jopamer/swift,gribozavr/swift,hooman/swift,Ivacker/swift,airspeedswift/swift,hughbe/swift,kusl/swift,milseman/swift,cbrentharris/swift,gmilos/swift,kstaring/swift,practicalswift/swift,mightydeveloper/swift,kstaring/swift,LeoShimonaka/swift,zisko/swift,tardieu/swift,shahmishal/swift,gribozavr/swift,benlangmuir/swift,stephentyrone/swift,amraboelela/swift,rudkx/swift,xedin/swift,djwbrown/swift,jtbandes/swift,return/swift,jckarter/swift,shajrawi/swift,swiftix/swift,codestergit/swift,gregomni/swift,tardieu/swift,tjw/swift,rudkx/swift,practicalswift/swift,shahmishal/swift,alblue/swift,hooman/swift,frootloops/swift,therealbnut/swift,adrfer/swift,slavapestov/swift,ahoppen/swift,xwu/swift,sdulal/swift,emilstahl/swift,uasys/swift,adrfer/swift,austinzheng/swift,kperryua/swift,nathawes/swift,atrick/swift,Ivacker/swift,ben-ng/swift,emilstahl/swift,natecook1000/swift,dduan/swift,milseman/swift,khizkhiz/swift,jtbandes/swift,milseman/swift,tkremenek/swift,ahoppen/swift,jopamer/swift,kentya6/swift,gmilos/swift,JaSpa/swift,benlangmuir/swift,roambotics/swift,KrishMunot/swift,slavapestov/swift,roambotics/swift,atrick/swift,harlanhaskins/swift,ken0nek/swift,LeoShimonaka/swift,karwa/swift,Jnosh/swift,xwu/swift,atrick/swift,parkera/swift,gottesmm/swift,atrick/swift,swiftix/swift.old,karwa/swift,swiftix/swift.old,frootloops/swift,CodaFi/swift,kusl/swift,ken0nek/swift,return/swift,danielmartin/swift,slavapestov/swift,deyton/swift,CodaFi/swift,LeoShimonaka/swift,OscarSwanros/swift,practicalswift/swift,kperryua/swift,djwbrown/swift,kusl/swift,amraboelela/swift,uasys/swift,ken0nek/swift,huonw/swift,amraboelela/swift,swiftix/swift,dreamsxin/swift,SwiftAndroid/swift,stephentyrone/swift,emilstahl/swift,arvedviehweger/swift,IngmarStein/swift,uasys/swift,alblue/swift,JaSpa/swift,dduan/swift,calebd/swift,modocache/swift,calebd/swift,jckarter/swift,sschiau/swift,allevato/swift,hughbe/swift,sdulal/swift,ken0nek/swift,xwu/swift,tardieu/swift,cbrentharris/swift,Ivacker/swift,russbishop/swift,shajrawi/swift,frootloops/swift,JGiola/swift,zisko/swift,gmilos/swift,roambotics/swift,practicalswift/swift,aschwaighofer/swift,hooman/swift,bitjammer/swift,stephentyrone/swift,natecook1000/swift,roambotics/swift,tinysun212/swift-windows,tardieu/swift,sdulal/swift,Jnosh/swift,arvedviehweger/swift,russbishop/swift,khizkhiz/swift,modocache/swift,djwbrown/swift,manavgabhawala/swift,gribozavr/swift,airspeedswift/swift,brentdax/swift,felix91gr/swift,ben-ng/swift,apple/swift,dduan/swift,kstaring/swift,therealbnut/swift,harlanhaskins/swift,hooman/swift,kentya6/swift,xedin/swift,hooman/swift,therealbnut/swift,jckarter/swift,stephentyrone/swift,codestergit/swift,lorentey/swift,JaSpa/swift,JGiola/swift,swiftix/swift.old,swiftix/swift,karwa/swift,kusl/swift,zisko/swift,jtbandes/swift,jmgc/swift,mightydeveloper/swift,natecook1000/swift,OscarSwanros/swift,OscarSwanros/swift,huonw/swift,modocache/swift,swiftix/swift,tjw/swift,huonw/swift,modocache/swift,parkera/swift,gmilos/swift,austinzheng/swift,xedin/swift,cbrentharris/swift,alblue/swift,mightydeveloper/swift,felix91gr/swift,MukeshKumarS/Swift,KrishMunot/swift,devincoughlin/swift,adrfer/swift,rudkx/swift,apple/swift,gottesmm/swift,JaSpa/swift,danielmartin/swift,modocache/swift,MukeshKumarS/Swift,xwu/swift,deyton/swift,gottesmm/swift,khizkhiz/swift,hughbe/swift,emilstahl/swift,zisko/swift,gottesmm/swift,KrishMunot/swift,devincoughlin/swift,return/swift,danielmartin/swift,lorentey/swift,KrishMunot/swift,codestergit/swift,shajrawi/swift,huonw/swift,brentdax/swift,shahmishal/swift,sschiau/swift,LeoShimonaka/swift,felix91gr/swift,austinzheng/swift,manavgabhawala/swift,russbishop/swift,kusl/swift,KrishMunot/swift,codestergit/swift,arvedviehweger/swift,gottesmm/swift,KrishMunot/swift,kusl/swift,devincoughlin/swift,johnno1962d/swift,shahmishal/swift,JaSpa/swift,bitjammer/swift,sdulal/swift,amraboelela/swift,huonw/swift,adrfer/swift,xedin/swift,ken0nek/swift,codestergit/swift,felix91gr/swift,Ivacker/swift,apple/swift,gmilos/swift,jtbandes/swift,parkera/swift,gregomni/swift,arvedviehweger/swift,tjw/swift,adrfer/swift,kentya6/swift,ben-ng/swift,tkremenek/swift,gribozavr/swift,slavapestov/swift,tinysun212/swift-windows,IngmarStein/swift,airspeedswift/swift,therealbnut/swift,Ivacker/swift,cbrentharris/swift,kstaring/swift,rudkx/swift,karwa/swift,parkera/swift,calebd/swift,SwiftAndroid/swift,MukeshKumarS/Swift,aschwaighofer/swift,deyton/swift,tkremenek/swift,cbrentharris/swift,emilstahl/swift,austinzheng/swift,allevato/swift,jmgc/swift,kusl/swift,sdulal/swift,karwa/swift,gregomni/swift,natecook1000/swift,deyton/swift,nathawes/swift,jtbandes/swift,dduan/swift,JaSpa/swift,johnno1962d/swift,calebd/swift,harlanhaskins/swift,kperryua/swift,apple/swift,shahmishal/swift,jtbandes/swift,glessard/swift,therealbnut/swift,CodaFi/swift,shahmishal/swift,johnno1962d/swift,dduan/swift,shajrawi/swift,xedin/swift,kentya6/swift,amraboelela/swift,gribozavr/swift,aschwaighofer/swift,calebd/swift,mightydeveloper/swift,IngmarStein/swift,tjw/swift,nathawes/swift,bitjammer/swift,airspeedswift/swift,xwu/swift,sdulal/swift,kperryua/swift,manavgabhawala/swift,tjw/swift,Ivacker/swift,uasys/swift,xwu/swift,sschiau/swift,atrick/swift,sdulal/swift,danielmartin/swift