Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252). (issue 10966031)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mma...@chromium.org  
View profile  
 More options Sep 21 2012, 7:18 am
From: mma...@chromium.org
Date: Fri, 21 Sep 2012 11:18:27 +0000
Local: Fri, Sep 21 2012 7:18 am
Subject: Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252). (issue 10966031)
Reviewers: Jakob,

Description:
Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252).

BUG=128252

Please review this at https://chromiumcodereview.appspot.com/10966031/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
   M src/lithium.h

Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index  
e1cd52aa0acc4e9642c7c3f9ef14646de6290a04..fdc61cb6fef3a316c8555433166a690d9 9e70a5f  
100644
--- a/src/lithium.h
+++ b/src/lithium.h
@@ -153,7 +153,10 @@ class LUnallocated: public LOperand {
                          kVirtualRegisterWidth> {
    };

-  static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth;
+  // kMaxVirtualRegisters should not exceed 1 << kVirtualRegisterWidth but  
we
+  // are setting it to a lower value otherwise crankshaft is too slow.
+  STATIC_ASSERT(kVirtualRegisterWidth > 13);
+  static const int kMaxVirtualRegisters = 1 << 13;
    static const int kMaxFixedIndex = 63;
    static const int kMinFixedIndex = -64;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vego...@google.com  
View profile  
 More options Sep 21 2012, 7:42 am
From: vego...@google.com
Date: Fri, 21 Sep 2012 11:42:08 +0000
Local: Fri, Sep 21 2012 7:42 am
Subject: Re: Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252). (issue 10966031)
dbc

[I would say that big functions should be sent to background thread for
compilation or split into chunks for chunked compilation; but this is too  
big a
change]

https://chromiumcodereview.appspot.com/10966031/diff/1/src/lithium.h
File src/lithium.h (right):

https://chromiumcodereview.appspot.com/10966031/diff/1/src/lithium.h#...
src/lithium.h:159: static const int kMaxVirtualRegisters = 1 << 13;
can you give some of this bits to other fields?

if you increase kMax/MinFixedIndex it will help Issue 2223.

https://chromiumcodereview.appspot.com/10966031/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mma...@chromium.org  
View profile  
 More options Sep 21 2012, 9:53 am
From: mma...@chromium.org
Date: Fri, 21 Sep 2012 13:53:21 +0000
Local: Fri, Sep 21 2012 9:53 am
Subject: Re: Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252). (issue 10966031)
I totally agree on the separate thread approach, apart from the fact that we
also had OOM issues with too many vregs so the limit had to be lowered  
anyway
(reaching the OOM condition is painfully slow on most machines).

This last patch settles on 15 bits after testing on many benchmarks trying  
to
find a reasonable compromise, and it gives all remaining bits to
kFixedIndexWidth.

https://chromiumcodereview.appspot.com/10966031/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jkumme...@chromium.org  
View profile  
 More options Sep 21 2012, 9:58 am
From: jkumme...@chromium.org
Date: Fri, 21 Sep 2012 13:58:14 +0000
Local: Fri, Sep 21 2012 9:58 am
Subject: Re: Lowered kMaxVirtualRegisters (fixes v8 2139 and chrome 123822 and 128252). (issue 10966031)
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »