[llvm-commits] [vmkit] r51542 - /vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sat May 24 05:01:44 PDT 2008
Author: geoffray
Date: Sat May 24 07:01:44 2008
New Revision: 51542
URL: http://llvm.org/viewvc/llvm-project?rev=51542&view=rev
Log:
Do inline accesses to array elements.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp
Modified: vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp?rev=51542&r1=51541&r2=51542&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/NativeUtil.cpp Sat May 24 07:01:44 2008
@@ -52,7 +52,7 @@
memcpy(buf, PRE, PRE_LEN);
for (sint32 i =0; i < clen; ++i) {
- cur = jniConsClName->at(i);
+ cur = jniConsClName->elements[i];
if (cur == '/') ptr[0] = '_';
else ptr[0] = (uint8)cur;
++ptr;
@@ -62,7 +62,7 @@
++ptr;
for (sint32 i =0; i < mnlen; ++i) {
- cur = jniConsName->at(i);
+ cur = jniConsName->elements[i];
if (cur == '/') ptr[0] = '_';
else ptr[0] = (uint8)cur;
++ptr;
@@ -89,7 +89,7 @@
memcpy(buf, PRE, PRE_LEN);
for (sint32 i =0; i < clen; ++i) {
- cur = jniConsClName->at(i);
+ cur = jniConsClName->elements[i];
if (cur == '/') ptr[0] = '_';
else ptr[0] = (uint8)cur;
++ptr;
@@ -99,7 +99,7 @@
++ptr;
for (sint32 i =0; i < mnlen; ++i) {
- cur = jniConsName->at(i);
+ cur = jniConsName->elements[i];
if (cur == '/') ptr[0] = '_';
else if (cur == '_') {
ptr[0] = '_';
@@ -131,7 +131,7 @@
memcpy(buf, PRE, PRE_LEN);
for (sint32 i =0; i < clen; ++i) {
- cur = jniConsClName->at(i);
+ cur = jniConsClName->elements[i];
if (cur == '/') ptr[0] = '_';
else ptr[0] = (uint8)cur;
++ptr;
@@ -141,7 +141,7 @@
++ptr;
for (sint32 i =0; i < mnlen; ++i) {
- cur = jniConsName->at(i);
+ cur = jniConsName->elements[i];
if (cur == '/') ptr[0] = '_';
else ptr[0] = (uint8)cur;
++ptr;
@@ -149,7 +149,7 @@
sint32 i = 0;
while (i < jniConsType->size) {
- char c = jniConsType->at(i++);
+ char c = jniConsType->elements[i++];
if (c == AssessorDesc::I_PARG) {
ptr[0] = '_';
ptr[1] = '_';
More information about the llvm-commits
mailing list