Mercurial > hg > truffle
comparison src/cpu/sparc/vm/templateTable_sparc.cpp @ 8104:f16e75e0cf11
8000797: NPG: is_pseudo_string_at() doesn't work
Summary: Zero Symbol* for constant pool strings to indicate pseudo_strings (objects that aren't strings). Clean up JVM_CONSTANT_Object and unused flags.
Reviewed-by: sspitsyn, jrose
author | coleenp |
---|---|
date | Fri, 22 Feb 2013 08:36:42 -0500 |
parents | db9981fd3124 |
children | f2e682ef3156 aeaca88565e6 |
comparison
equal
deleted
inserted
replaced
8103:5ed317b25e23 | 8104:f16e75e0cf11 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
338 __ push(itos); | 338 __ push(itos); |
339 __ ba_short(exit); | 339 __ ba_short(exit); |
340 | 340 |
341 __ bind(notInt); | 341 __ bind(notInt); |
342 // __ cmp(O2, JVM_CONSTANT_String); | 342 // __ cmp(O2, JVM_CONSTANT_String); |
343 __ brx(Assembler::equal, true, Assembler::pt, isString); | |
344 __ delayed()->cmp(O2, JVM_CONSTANT_Object); | |
345 __ brx(Assembler::notEqual, true, Assembler::pt, notString); | 343 __ brx(Assembler::notEqual, true, Assembler::pt, notString); |
346 __ delayed()->ldf(FloatRegisterImpl::S, O0, O1, Ftos_f); | 344 __ delayed()->ldf(FloatRegisterImpl::S, O0, O1, Ftos_f); |
347 __ bind(isString); | 345 __ bind(isString); |
348 __ stop("string should be rewritten to fast_aldc"); | 346 __ stop("string should be rewritten to fast_aldc"); |
349 __ ba_short(exit); | 347 __ ba_short(exit); |