mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_insnhelper.c (vm_getivar): use always_inline because
gcc7 doesn't inline this without always_inline. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a9569b1c2
commit
cb18d4ba46
2 changed files with 7 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 9 16:09:03 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_insnhelper.c (vm_getivar): use always_inline because
|
||||||
|
gcc7 doesn't inline this without always_inline.
|
||||||
|
|
||||||
Tue Aug 9 15:41:24 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
Tue Aug 9 15:41:24 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* ext/tk: Tk is removed from stdlib. [Feature #8539]
|
* ext/tk: Tk is removed from stdlib. [Feature #8539]
|
||||||
|
|
|
@ -15,16 +15,10 @@
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "probes.h"
|
#include "probes.h"
|
||||||
#include "probes_helper.h"
|
#include "probes_helper.h"
|
||||||
|
#include "ruby/config.h"
|
||||||
|
|
||||||
/* control stack frame */
|
/* control stack frame */
|
||||||
|
|
||||||
#undef INLINE
|
|
||||||
#if defined __GNUC__ && !defined __NO_INLINE__ && !defined __clang__
|
|
||||||
#define INLINE inline
|
|
||||||
#else
|
|
||||||
#define INLINE static inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static rb_control_frame_t *vm_get_ruby_level_caller_cfp(const rb_thread_t *th, const rb_control_frame_t *cfp);
|
static rb_control_frame_t *vm_get_ruby_level_caller_cfp(const rb_thread_t *th, const rb_control_frame_t *cfp);
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
@ -867,7 +861,7 @@ vm_search_const_defined_class(const VALUE cbase, ID id)
|
||||||
#define USE_IC_FOR_IVAR 1
|
#define USE_IC_FOR_IVAR 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INLINE VALUE
|
ALWAYS_INLINE() inline VALUE
|
||||||
vm_getivar(VALUE obj, ID id, IC ic, struct rb_call_cache *cc, int is_attr)
|
vm_getivar(VALUE obj, ID id, IC ic, struct rb_call_cache *cc, int is_attr)
|
||||||
{
|
{
|
||||||
#if USE_IC_FOR_IVAR
|
#if USE_IC_FOR_IVAR
|
||||||
|
|
Loading…
Add table
Reference in a new issue