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
MIPS: Do not go to slow mode and back to fast in initializer blocks. (issue 10905313)
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
  2 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
 
pal...@homejinni.com  
View profile  
 More options Sep 17 2012, 6:00 pm
From: pal...@homejinni.com
Date: Mon, 17 Sep 2012 22:00:35 +0000
Local: Mon, Sep 17 2012 6:00 pm
Subject: MIPS: Do not go to slow mode and back to fast in initializer blocks. (issue 10905313)
Reviewers: Toon Verwaest, danno, Paul Lind, kisg,

Description:
MIPS: Do not go to slow mode and back to fast in initializer blocks.

Port r12534 (4acfb92e)

BUG=
TEST=

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

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

Affected files:
   M src/mips/full-codegen-mips.cc

Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index  
bfa24252b9046e2e15e275c2c613ef6b18b5ee25..0d758a669ba998d4565ca56218c831330 1ce5893  
100644
--- a/src/mips/full-codegen-mips.cc
+++ b/src/mips/full-codegen-mips.cc
@@ -2208,44 +2208,17 @@ void  
FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) {
    ASSERT(prop != NULL);
    ASSERT(prop->key()->AsLiteral() != NULL);

-  // If the assignment starts a block of assignments to the same object,
-  // change to slow case to avoid the quadratic behavior of repeatedly
-  // adding fast properties.
-  if (expr->starts_initialization_block()) {
-    __ push(result_register());
-    __ lw(t0, MemOperand(sp, kPointerSize));  // Receiver is now under  
value.
-    __ push(t0);
-    __ CallRuntime(Runtime::kToSlowProperties, 1);
-    __ pop(result_register());
-  }
-
    // Record source code position before IC call.
    SetSourcePosition(expr->position());
    __ mov(a0, result_register());  // Load the value.
    __ li(a2, Operand(prop->key()->AsLiteral()->handle()));
-  // Load receiver to a1. Leave a copy in the stack if needed for turning  
the
-  // receiver into fast case.
-  if (expr->ends_initialization_block()) {
-    __ lw(a1, MemOperand(sp));
-  } else {
-    __ pop(a1);
-  }
+  __ pop(a1);

    Handle<Code> ic = is_classic_mode()
          ? isolate()->builtins()->StoreIC_Initialize()
          : isolate()->builtins()->StoreIC_Initialize_Strict();
    CallIC(ic, RelocInfo::CODE_TARGET, expr->AssignmentFeedbackId());

-  // If the assignment ends an initialization block, revert to fast case.
-  if (expr->ends_initialization_block()) {
-    __ push(v0);  // Result of assignment, saved even if not needed.
-    // Receiver is under the result value.
-    __ lw(t0, MemOperand(sp, kPointerSize));
-    __ push(t0);
-    __ CallRuntime(Runtime::kToFastProperties, 1);
-    __ pop(v0);
-    __ Drop(1);
-  }
    PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
    context()->Plug(v0);
  }
@@ -2254,18 +2227,6 @@ void  
FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) {
  void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) {
    // Assignment to a property, using a keyed store IC.

-  // If the assignment starts a block of assignments to the same object,
-  // change to slow case to avoid the quadratic behavior of repeatedly
-  // adding fast properties.
-  if (expr->starts_initialization_block()) {
-    __ push(result_register());
-    // Receiver is now under the key and value.
-    __ lw(t0, MemOperand(sp, 2 * kPointerSize));
-    __ push(t0);
-    __ CallRuntime(Runtime::kToSlowProperties, 1);
-    __ pop(result_register());
-  }
-
    // Record source code position before IC call.
    SetSourcePosition(expr->position());
    // Call keyed store IC.
@@ -2275,29 +2236,13 @@ void  
FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) {
    // - a2 is the receiver.
    __ mov(a0, result_register());
    __ pop(a1);  // Key.
-  // Load receiver to a2. Leave a copy in the stack if needed for turning  
the
-  // receiver into fast case.
-  if (expr->ends_initialization_block()) {
-    __ lw(a2, MemOperand(sp));
-  } else {
-    __ pop(a2);
-  }
+  __ pop(a2);

    Handle<Code> ic = is_classic_mode()
        ? isolate()->builtins()->KeyedStoreIC_Initialize()
        : isolate()->builtins()->KeyedStoreIC_Initialize_Strict();
    CallIC(ic, RelocInfo::CODE_TARGET, expr->AssignmentFeedbackId());

-  // If the assignment ends an initialization block, revert to fast case.
-  if (expr->ends_initialization_block()) {
-    __ push(v0);  // Result of assignment, saved even if not needed.
-    // Receiver is under the result value.
-    __ lw(t0, MemOperand(sp, kPointerSize));
-    __ push(t0);
-    __ CallRuntime(Runtime::kToFastProperties, 1);
-    __ pop(v0);
-    __ Drop(1);
-  }
    PrepareForBailoutForId(expr->AssignmentId(), TOS_REG);
    context()->Plug(v0);
  }


 
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.
verwa...@chromium.org  
View profile  
 More options Sep 18 2012, 9:42 am
From: verwa...@chromium.org
Date: Tue, 18 Sep 2012 13:42:39 +0000
Local: Tues, Sep 18 2012 9:42 am
Subject: Re: MIPS: Do not go to slow mode and back to fast in initializer blocks. (issue 10905313)
 
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 »