Review URL: http://codereview.chromium.org/
8561011
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10028
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
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
};
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);
}
namespace v8 {
namespace internal {
-Allocator* HashMap::DefaultAllocator = ::new Allocator();
+Allocator* HashMap::DefaultAllocator = new Allocator();
HashMap::HashMap(MatchFun match,
};
-static ZoneAllocator* LocalsMapAllocator = ::new ZoneAllocator();
+static ZoneAllocator* LocalsMapAllocator = new ZoneAllocator();
// ----------------------------------------------------------------------------