comparison src/cpu/x86/vm/interpreter_x86.hpp @ 2245:638119ce7cfd

7009309: JSR 292: compiler/6991596/Test6991596.java crashes on fastdebug JDK7/b122 Reviewed-by: kvn, never
author twisti
date Tue, 01 Feb 2011 03:38:44 -0800
parents f95d63e2154a
children 167b70ff3abc
comparison
equal deleted inserted replaced
2244:4f26f535a225 2245:638119ce7cfd
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2011, 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.
24 24
25 #ifndef CPU_X86_VM_INTERPRETER_X86_HPP 25 #ifndef CPU_X86_VM_INTERPRETER_X86_HPP
26 #define CPU_X86_VM_INTERPRETER_X86_HPP 26 #define CPU_X86_VM_INTERPRETER_X86_HPP
27 27
28 public: 28 public:
29
30 // Sentinel placed in the code for interpreter returns so
31 // that i2c adapters and osr code can recognize an interpreter
32 // return address and convert the return to a specialized
33 // block of code to handle compiedl return values and cleaning
34 // the fpu stack.
35 static const int return_sentinel;
36
37 static Address::ScaleFactor stackElementScale() { return Address::times_4; } 29 static Address::ScaleFactor stackElementScale() { return Address::times_4; }
38 30
39 // Offset from rsp (which points to the last stack element) 31 // Offset from rsp (which points to the last stack element)
40 static int expr_offset_in_bytes(int i) { return stackElementSize * i; } 32 static int expr_offset_in_bytes(int i) { return stackElementSize * i; }
41 33