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

Unified Diff: src/deoptimizer.h

Issue 26863002: Use C++ style raw (de)allocation in FrameDescription. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 931082171f9a0d8cfdf09c99e4c20f21a27a78c2..09e152fc6d6f649248d491138721401eb689652a 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -466,15 +466,15 @@ class FrameDescription {
void* operator new(size_t size, uint32_t frame_size) {
// Subtracts kPointerSize, as the member frame_content_ already supplies
// the first element of the area to store the frame.
- return malloc(size + frame_size - kPointerSize);
+ return ::operator new(size + frame_size - kPointerSize);
}
void operator delete(void* pointer, uint32_t frame_size) {
- free(pointer);
+ ::operator delete(pointer);
}
void operator delete(void* description) {
- free(description);
+ ::operator delete(description);
}
uint32_t GetFrameSize() const {
« 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