Mercurial > hg > truffle
comparison src/share/vm/runtime/stubRoutines.hpp @ 14392:b5c8a61d7fa0
Merge
author | kvn |
---|---|
date | Fri, 21 Jun 2013 15:56:24 -0700 |
parents | d2907f74462e f2110083203d |
children | 6cc7093e1341 |
comparison
equal
deleted
inserted
replaced
14391:d2907f74462e | 14392:b5c8a61d7fa0 |
---|---|
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. |
224 public: | 224 public: |
225 // Initialization/Testing | 225 // Initialization/Testing |
226 static void initialize1(); // must happen before universe::genesis | 226 static void initialize1(); // must happen before universe::genesis |
227 static void initialize2(); // must happen after universe::genesis | 227 static void initialize2(); // must happen after universe::genesis |
228 | 228 |
229 static bool is_stub_code(address addr) { return contains(addr); } | |
230 | |
229 static bool contains(address addr) { | 231 static bool contains(address addr) { |
230 return | 232 return |
231 (_code1 != NULL && _code1->blob_contains(addr)) || | 233 (_code1 != NULL && _code1->blob_contains(addr)) || |
232 (_code2 != NULL && _code2->blob_contains(addr)) ; | 234 (_code2 != NULL && _code2->blob_contains(addr)) ; |
233 } | 235 } |