Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: src/ia32/code-stubs-ia32.cc

Issue 1340123002: Revert of VectorICs: ia32 store ics need a virtual register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/ic/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/code-stubs-ia32.cc
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
index 4fcdabc8c790bde2d681e5a9bd7fce3e2f448acf..c685d223ccc8791903928e76f7f6d989b2c47786 100644
--- a/src/ia32/code-stubs-ia32.cc
+++ b/src/ia32/code-stubs-ia32.cc
@@ -4567,8 +4567,6 @@
Label next, next_loop, prepare_next;
Label load_smi_map, compare_map;
Label start_polymorphic;
- ExternalReference virtual_register =
- ExternalReference::vector_store_virtual_register(masm->isolate());
__ push(receiver);
__ push(vector);
@@ -4595,9 +4593,8 @@
__ pop(vector);
__ pop(receiver);
__ lea(handler, FieldOperand(handler, Code::kHeaderSize));
- __ mov(Operand::StaticVariable(virtual_register), handler);
- __ pop(handler); // Pop "value".
- __ jmp(Operand::StaticVariable(virtual_register));
+ __ xchg(handler, Operand(esp, 0));
+ __ ret(0);
// Polymorphic, we have to loop from 2 to N
@@ -4617,13 +4614,12 @@
__ j(not_equal, &prepare_next);
__ mov(handler, FieldOperand(feedback, counter, times_half_pointer_size,
FixedArray::kHeaderSize + kPointerSize));
- __ lea(handler, FieldOperand(handler, Code::kHeaderSize));
__ pop(key);
__ pop(vector);
__ pop(receiver);
- __ mov(Operand::StaticVariable(virtual_register), handler);
- __ pop(handler); // Pop "value".
- __ jmp(Operand::StaticVariable(virtual_register));
+ __ lea(handler, FieldOperand(handler, Code::kHeaderSize));
+ __ xchg(handler, Operand(esp, 0));
+ __ ret(0);
__ bind(&prepare_next);
__ add(counter, Immediate(Smi::FromInt(2)));
@@ -4648,8 +4644,6 @@
Label* miss) {
// The store ic value is on the stack.
DCHECK(weak_cell.is(VectorStoreICDescriptor::ValueRegister()));
- ExternalReference virtual_register =
- ExternalReference::vector_store_virtual_register(masm->isolate());
// feedback initially contains the feedback array
Label compare_smi_map;
@@ -4666,10 +4660,9 @@
FixedArray::kHeaderSize + kPointerSize));
__ lea(weak_cell, FieldOperand(weak_cell, Code::kHeaderSize));
// Put the store ic value back in it's register.
- __ mov(Operand::StaticVariable(virtual_register), weak_cell);
- __ pop(weak_cell); // Pop "value".
- // jump to the handler.
- __ jmp(Operand::StaticVariable(virtual_register));
+ __ xchg(weak_cell, Operand(esp, 0));
+ // "return" to the handler.
+ __ ret(0);
// In microbenchmarks, it made sense to unroll this code so that the call to
// the handler is duplicated for a HeapObject receiver and a Smi receiver.
@@ -4679,10 +4672,10 @@
__ mov(weak_cell, FieldOperand(vector, slot, times_half_pointer_size,
FixedArray::kHeaderSize + kPointerSize));
__ lea(weak_cell, FieldOperand(weak_cell, Code::kHeaderSize));
- __ mov(Operand::StaticVariable(virtual_register), weak_cell);
- __ pop(weak_cell); // Pop "value".
- // jump to the handler.
- __ jmp(Operand::StaticVariable(virtual_register));
+ // Put the store ic value back in it's register.
+ __ xchg(weak_cell, Operand(esp, 0));
+ // "return" to the handler.
+ __ ret(0);
}
@@ -4755,8 +4748,6 @@
Label load_smi_map, compare_map;
Label transition_call;
Label pop_and_miss;
- ExternalReference virtual_register =
- ExternalReference::vector_store_virtual_register(masm->isolate());
__ push(receiver);
__ push(vector);
@@ -4793,9 +4784,8 @@
__ pop(vector);
__ pop(receiver);
__ lea(feedback, FieldOperand(feedback, Code::kHeaderSize));
- __ mov(Operand::StaticVariable(virtual_register), feedback);
- __ pop(feedback); // Pop "value".
- __ jmp(Operand::StaticVariable(virtual_register));
+ __ xchg(feedback, Operand(esp, 0));
+ __ ret(0);
__ bind(&transition_call);
// Oh holy hell this will be tough.
« no previous file with comments | « src/flag-definitions.h ('k') | src/ic/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698