Commit 5c23e4e5 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Avoid explicitly using built-in new operator where possible to appease Windows build.

Review URL: http://codereview.chromium.org/8561011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10028 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f0878c84
......@@ -827,7 +827,7 @@ void ElementsAccessor::InitializeOncePerProcess() {
ELEMENTS_LIST(ACCESSOR_STRUCT)
#undef ACCESSOR_STRUCT
} element_accessors = {
#define ACCESSOR_INIT(Class, Name) ::new Class(),
#define ACCESSOR_INIT(Class, Name) new Class(),
ELEMENTS_LIST(ACCESSOR_INIT)
#undef ACCESSOR_INIT
};
......
......@@ -46,7 +46,8 @@ v8::Handle<v8::Value> GCExtension::GC(const v8::Arguments& args) {
void GCExtension::Register() {
static GCExtension* gc_extension = ::new GCExtension();
static GCExtension* gc_extension = NULL;
if (gc_extension == NULL) gc_extension = new GCExtension();
static v8::DeclareExtension gc_extension_declaration(gc_extension);
}
......
......@@ -36,7 +36,7 @@
namespace v8 {
namespace internal {
Allocator* HashMap::DefaultAllocator = ::new Allocator();
Allocator* HashMap::DefaultAllocator = new Allocator();
HashMap::HashMap(MatchFun match,
......
......@@ -55,7 +55,7 @@ class ZoneAllocator: public Allocator {
};
static ZoneAllocator* LocalsMapAllocator = ::new ZoneAllocator();
static ZoneAllocator* LocalsMapAllocator = new ZoneAllocator();
// ----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment