Reland 20962 "Break cyclic reference between utils and platform."
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Apr 2014 13:43:58 +0000 (13:43 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Apr 2014 13:43:58 +0000 (13:43 +0000)
commit65a983a4814a6dc09e9e04831e12f29445f03b9a
tree33f247cfb34408df52049b8daaebcc7a650c32d5
parent3ce912038edf1b7cb04931ce4fbd6c82167ae568
Reland 20962 "Break cyclic reference between utils and platform."

Don't use OS::MemCopy in BitCast. It's crucial that the compiler can
optimize the memcpy away.

>  Platform includes utils.h for the definition of Vector<>, so utils.h
>  can't include platform.h and has to use memcpy instead of OS::MemCopy.
>
>  We split out Vector<> into its own header to break this cycle
>  dependency.
>
>  BUG=none
>  R=mstarzinger@chromium.org
>  LOG=n
>
>  Review URL: https://codereview.chromium.org/251753002

TBR=jkummerow@chromium.org
LOG=n
BUG=none

Review URL: https://codereview.chromium.org/252683004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20983 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/libplatform/default-platform.cc
src/libplatform/default-platform.h
src/platform.h
src/utils.h
src/vector.h [new file with mode: 0644]
tools/gyp/v8.gyp