From 4c63cb161ab62d08ceaefb029aa3fe1ca4da92be Mon Sep 17 00:00:00 2001
From: mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Thu, 17 Mar 2016 12:47:31 +0000
Subject: * compile.c (NODE_CALL): add optimization shortcut for Array#max/min.
   Now `[x, y].max` is optimized so that a temporal array object is not  
 created in some condition.

* insns.def (opt_newarray_max, opt_newarray_min): added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 defs/id.def | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'defs/id.def')

diff --git a/defs/id.def b/defs/id.def
index e186725770..4fe9d3ccd8 100644
--- a/defs/id.def
+++ b/defs/id.def
@@ -1,5 +1,7 @@
 # -*- mode: ruby; coding: us-ascii -*-
 firstline, predefined = __LINE__+1, %[\
+  max
+  min
   freeze
   inspect
   intern
-- 
cgit v1.2.3

