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

Unified Diff: src/code-stubs.h

Issue 43693002: Correctly setup exit frame when calling into allocation tracker (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added AllowStubCallsScope Created 7 years, 1 month 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 | « src/allocation-tracker.cc ('k') | src/frames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 80d99d8b689f704ce475f3d96a2978ae2e339631..ab3e0bef6abc43f38bebfed85a5281e04e9e09d1 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -95,7 +95,8 @@ namespace internal {
V(StoreGlobal) \
/* IC Handler stubs */ \
V(LoadField) \
- V(KeyedLoadField)
+ V(KeyedLoadField) \
+ V(RecordObjectAllocation)
// List of code stubs only used on ARM platforms.
#if V8_TARGET_ARCH_ARM
@@ -1398,6 +1399,27 @@ class JSEntryStub : public PlatformCodeStub {
};
+// Report JS object allocation to heap profiler if allocations tracking mode
+// is on.
+class RecordObjectAllocationStub : public PlatformCodeStub {
+ public:
+ RecordObjectAllocationStub() {}
+
+ virtual void Generate(MacroAssembler* masm);
+
+ private:
+ // This code stub never causes GC.
+ virtual bool SometimesSetsUpAFrame() { return false; }
+
+ virtual Major MajorKey() { return RecordObjectAllocation; }
+ virtual int MinorKey() { return 0; }
+
+ virtual void PrintName(StringStream* stream) {
+ stream->Add("RecordObjectAllocationStub");
+ }
+};
+
+
class JSConstructEntryStub : public JSEntryStub {
public:
JSConstructEntryStub() { }
« no previous file with comments | « src/allocation-tracker.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698