Always fail when trying to store to an undeclared global variable, even if it was...
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 23 Jan 2013 16:04:19 +0000 (16:04 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 23 Jan 2013 16:04:19 +0000 (16:04 +0000)
commitc1e44f133d4e540049dc96cb7eb353c49b79d171
treed26c927cede4533c69c77a38cfd6d0e4599ebc35
parentd29826544e059fe35da09ba213e19e657b44e145
Always fail when trying to store to an undeclared global variable, even if it was found.

Finding a property, but not using an IC, indicates that the variable was
found on the prototype (in DOMWindow). Those properties need to be
ignored while storing global properties via the IC.

Review URL: https://chromiumcodereview.appspot.com/12040039

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ic.cc
src/ic.h
src/stub-cache.cc
test/cctest/cctest.gyp
test/cctest/test-global-object.cc [new file with mode: 0644]