Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 1355) |
+++ src/factory.cc (working copy) |
@@ -487,16 +487,10 @@ |
Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, |
Code::Flags flags, Handle<Object> self_ref) { |
- CALL_HEAP_FUNCTION(Heap::CreateCode( |
- desc, sinfo, flags, reinterpret_cast<Code**>(self_ref.location())), Code); |
+ CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, self_ref), Code); |
} |
-Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, |
- Code::Flags flags) { |
- CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, NULL), Code); |
-} |
- |
Handle<Code> Factory::CopyCode(Handle<Code> code) { |
CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); |
} |