Changeset 206 in dev for trunk/abdev/BasicCompiler64/Compile_Func.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_Func.cpp
r198 r206 1 #include "stdafx.h" 2 1 3 #include <jenga/include/smoothie/Smoothie.h> 2 4 … … 46 48 } 47 49 48 int SubScripts[MAX_ARRAYDIM];50 Subscripts subscripts; 49 51 RELATIVE_VAR RelativeVar; 50 if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type, SubScripts)) return;52 if(!GetVarOffsetReadOnly(tempParm,&RelativeVar,type,&subscripts)) return; 51 53 52 54 if(type.GetBasicType()&FLAG_PTR){ … … 59 61 int typeSize = type.GetSize(); 60 62 61 if(bArrayHead) typeSize*=JumpSubScripts( SubScripts);63 if(bArrayHead) typeSize*=JumpSubScripts(subscripts); 62 64 63 65 //mov rax,TypeSize … … 68 70 void Opcode_Func_AddressOf( const char *name ){ 69 71 extern int cp; 70 UserProc *pUserProc;72 const UserProc *pUserProc; 71 73 72 74 extern LONG_PTR ProcPtr_BaseIndex; … … 74 76 //左辺の型にのっとり、オーバーロードを解決 75 77 76 std::vector< UserProc *> subs;78 std::vector<const UserProc *> subs; 77 79 GetOverloadSubHash( name, subs ); 78 80 if( subs.size() == 0 ){ … … 131 133 SetThisPtrToReg(REG_RCX); 132 134 133 pobj_c= Smoothie::Temp::pCompilingClass;135 pobj_c=compiler.pCompilingClass; 134 136 } 135 137
Note:
See TracChangeset
for help on using the changeset viewer.