runtime.cxx (e1f63238) | runtime.cxx (93ed1f29) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 717 unchanged lines hidden (view full) --- 726 727#ifdef DBG_TRACE_BASIC 728 sal_uInt32 nPC = ( pCode - (const sal_uInt8* )pImg->GetCode() ); 729 dbg_traceStep( pMod, nPC, pINST->nCallLvl ); 730#endif 731 732 SbiOpcode eOp = (SbiOpcode ) ( *pCode++ ); 733 sal_uInt32 nOp1, nOp2; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 717 unchanged lines hidden (view full) --- 726 727#ifdef DBG_TRACE_BASIC 728 sal_uInt32 nPC = ( pCode - (const sal_uInt8* )pImg->GetCode() ); 729 dbg_traceStep( pMod, nPC, pINST->nCallLvl ); 730#endif 731 732 SbiOpcode eOp = (SbiOpcode ) ( *pCode++ ); 733 sal_uInt32 nOp1, nOp2; |
734 if( eOp <= SbOP0_END ) | 734 if (eOp < SbOP0_END) |
735 { 736 (this->*( aStep0[ eOp ] ) )(); 737 } | 735 { 736 (this->*( aStep0[ eOp ] ) )(); 737 } |
738 else if( eOp >= SbOP1_START && eOp <= SbOP1_END ) | 738 else if (eOp >= SbOP1_START && eOp < SbOP1_END) |
739 { 740 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; 741 742 (this->*( aStep1[ eOp - SbOP1_START ] ) )( nOp1 ); 743 } | 739 { 740 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; 741 742 (this->*( aStep1[ eOp - SbOP1_START ] ) )( nOp1 ); 743 } |
744 else if( eOp >= SbOP2_START && eOp <= SbOP2_END ) | 744 else if (eOp >= SbOP2_START && eOp < SbOP2_END) |
745 { 746 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; 747 nOp2 = *pCode++; nOp2 |= *pCode++ << 8; nOp2 |= *pCode++ << 16; nOp2 |= *pCode++ << 24; 748 (this->*( aStep2[ eOp - SbOP2_START ] ) )( nOp1, nOp2 ); 749 } 750 else 751 StarBASIC::FatalError( SbERR_INTERNAL_ERROR ); 752 --- 556 unchanged lines hidden --- | 745 { 746 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; 747 nOp2 = *pCode++; nOp2 |= *pCode++ << 8; nOp2 |= *pCode++ << 16; nOp2 |= *pCode++ << 24; 748 (this->*( aStep2[ eOp - SbOP2_START ] ) )( nOp1, nOp2 ); 749 } 750 else 751 StarBASIC::FatalError( SbERR_INTERNAL_ERROR ); 752 --- 556 unchanged lines hidden --- |