Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: src/compiler/instruction.h

Issue 428223002: Add delete operators for Instruction to make Visual C++ happy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index c461955493ce3301e2941c9bfd678a9f14dbd55f..92b785bb3f4d2bff51fcd0a34af5577e0555c9c7 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -489,6 +489,9 @@ class Instruction : public ZoneObject {
// zone-allocated memory.
void* operator new(size_t, void* location) { return location; }
+ void operator delete(void*, size_t) { UNREACHABLE(); }
Sven Panne 2014/07/31 06:45:51 I don't understand this commit: Why do we have to
+ void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
+
protected:
explicit Instruction(InstructionCode opcode)
: opcode_(opcode),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698