Changeset 35230 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jul 17, 2008, 4:53:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r35037 r35230 863 863 { 864 864 ASSERT(opcodeID == op_call || opcodeID == op_call_eval); 865 866 RefPtr<RegisterID> refFunc = func; 867 RefPtr<RegisterID> refBase = base; 865 866 // Ordinarily, we might ref "func" and "base", to avoid allocating new 867 // temporaries in the same registers. In this case, though, we actually 868 // want the call frame we allocate to overlap "func" and "base", if they're 869 // not otherwise referenced. op_call will read "func" and "base" before 870 // writing out the call frame, so this is safe. 868 871 869 872 // Reserve space for call frame. … … 898 901 RegisterID* CodeGenerator::emitConstruct(RegisterID* dst, RegisterID* func, ArgumentsNode* argumentsNode) 899 902 { 903 // Ordinarily, we might ref "func", to avoid allocating a new temporary in 904 // the same register. In this case, though, we actually want the call 905 // frame we allocate to overlap "func", if it's not otherwise referenced. 906 // op_construct will read "func" before writing out the call frame, so this 907 // is safe. 908 900 909 // Reserve space for call frame. 901 910 Vector<RefPtr<RegisterID>, RegisterFile::CallFrameHeaderSize> callFrame;
Note:
See TracChangeset
for help on using the changeset viewer.