Mercurial > hg > graal-compiler
comparison src/share/vm/c1x/c1x_VmIds.cpp @ 2215:999f8086cc4f
More changes to make it compile and work on win64.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 20:44:57 +0100 |
parents | 9c96c873c42b |
children | 3e3e8bd12730 |
comparison
equal
deleted
inserted
replaced
2214:30fd69882184 | 2215:999f8086cc4f |
---|---|
50 jlong VmIds::addStub(address stub) { | 50 jlong VmIds::addStub(address stub) { |
51 assert(!_stubs->contains(stub), "duplicate stub"); | 51 assert(!_stubs->contains(stub), "duplicate stub"); |
52 return _stubs->append(stub) | STUB; | 52 return _stubs->append(stub) | STUB; |
53 } | 53 } |
54 | 54 |
55 jlong VmIds::add(Handle obj, CompilerObjectType type) { | 55 jlong VmIds::add(Handle obj, jlong type) { |
56 assert(!obj.is_null(), "cannot add NULL handle"); | 56 assert(!obj.is_null(), "cannot add NULL handle"); |
57 int idx = -1; | 57 int idx = -1; |
58 for (int i = 0; i < _localHandles->length(); i++) | 58 for (int i = 0; i < _localHandles->length(); i++) |
59 if (JNIHandles::resolve_non_null(_localHandles->at(i)) == obj()) { | 59 if (JNIHandles::resolve_non_null(_localHandles->at(i)) == obj()) { |
60 idx = i; | 60 idx = i; |