Index: src/arm/code-stubs-arm.h |
diff --git a/src/arm/code-stubs-arm.h b/src/arm/code-stubs-arm.h |
index 9e9047e579d79d7c4384416ea776e8c21299f6b1..1fc50c19dd360cf75709600bb2f0f2523563d65b 100644 |
--- a/src/arm/code-stubs-arm.h |
+++ b/src/arm/code-stubs-arm.h |
@@ -570,6 +570,23 @@ class RegExpCEntryStub: public CodeStub { |
const char* GetName() { return "RegExpCEntryStub"; } |
}; |
Erik Corry
2011/02/04 09:55:55
Missing blank line.
antonm
2011/02/04 12:59:45
Done.
|
+// Trampoline stub to call into native code. To call safely into native code |
+// in the presence of compacting GC (which can move code objects) we need to |
+// keep the code which called into native pinned in the memory. Currently the |
+// simplest approach is to generate such stub early enough so it can never be |
+// moved by GC |
+class DirectCEntryStub: public CodeStub { |
+ public: |
+ DirectCEntryStub() {} |
+ void Generate(MacroAssembler* masm); |
+ void GenerateCall(MacroAssembler* masm, ApiFunction *function); |
+ |
+ private: |
+ Major MajorKey() { return DirectCEntry; } |
+ int MinorKey() { return 0; } |
+ const char* GetName() { return "DirectCEntryStub"; } |
+}; |
+ |
} } // namespace v8::internal |