Revision: 19513
Author: [email protected]
Date: Thu Feb 20 16:36:53 2014 UTC
Log: Remove the unused LoadInitialArrayMap.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/173883003
http://code.google.com/p/v8/source/detail?r=19513
Modified:
/branches/bleeding_edge/src/a64/macro-assembler-a64.cc
/branches/bleeding_edge/src/a64/macro-assembler-a64.h
/branches/bleeding_edge/src/arm/macro-assembler-arm.cc
/branches/bleeding_edge/src/arm/macro-assembler-arm.h
/branches/bleeding_edge/src/ia32/macro-assembler-ia32.cc
/branches/bleeding_edge/src/ia32/macro-assembler-ia32.h
/branches/bleeding_edge/src/mips/macro-assembler-mips.cc
/branches/bleeding_edge/src/mips/macro-assembler-mips.h
/branches/bleeding_edge/src/x64/macro-assembler-x64.cc
/branches/bleeding_edge/src/x64/macro-assembler-x64.h
=======================================
--- /branches/bleeding_edge/src/a64/macro-assembler-a64.cc Wed Feb 19
16:13:09 2014 UTC
+++ /branches/bleeding_edge/src/a64/macro-assembler-a64.cc Thu Feb 20
16:36:53 2014 UTC
@@ -4708,29 +4708,6 @@
offset = (transitioned_kind * kPointerSize) +
FixedArrayBase::kHeaderSize;
Ldr(map_in_out, FieldMemOperand(scratch, offset));
}
-
-
-void MacroAssembler::LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- ArrayHasHoles holes) {
- ASSERT(!AreAliased(function_in, scratch, map_out));
- Label done;
- Ldr(map_out, FieldMemOperand(function_in,
- JSFunction::kPrototypeOrInitialMapOffset));
-
- if (!FLAG_smi_only_arrays) {
- ElementsKind kind = (holes == kArrayCanHaveHoles) ? FAST_HOLEY_ELEMENTS
- : FAST_ELEMENTS;
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, kind, map_out,
- scratch, &done);
- } else if (holes == kArrayCanHaveHoles) {
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- FAST_HOLEY_SMI_ELEMENTS, map_out,
- scratch, &done);
- }
- Bind(&done);
-}
void MacroAssembler::LoadArrayFunction(Register function) {
=======================================
--- /branches/bleeding_edge/src/a64/macro-assembler-a64.h Wed Feb 19
16:13:09 2014 UTC
+++ /branches/bleeding_edge/src/a64/macro-assembler-a64.h Thu Feb 20
16:36:53 2014 UTC
@@ -1886,12 +1886,6 @@
Register scratch,
Label* no_map_match);
- // Load the initial map for new Arrays from a JSFunction.
- void LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- ArrayHasHoles holes);
-
void LoadArrayFunction(Register function);
void LoadGlobalFunction(int index, Register function);
=======================================
--- /branches/bleeding_edge/src/arm/macro-assembler-arm.cc Tue Feb 18
13:03:24 2014 UTC
+++ /branches/bleeding_edge/src/arm/macro-assembler-arm.cc Thu Feb 20
16:36:53 2014 UTC
@@ -2888,31 +2888,6 @@
FixedArrayBase::kHeaderSize;
ldr(map_in_out, FieldMemOperand(scratch, offset));
}
-
-
-void MacroAssembler::LoadInitialArrayMap(
- Register function_in, Register scratch,
- Register map_out, bool can_have_holes) {
- ASSERT(!function_in.is(map_out));
- Label done;
- ldr(map_out, FieldMemOperand(function_in,
- JSFunction::kPrototypeOrInitialMapOffset));
- if (!FLAG_smi_only_arrays) {
- ElementsKind kind = can_have_holes ? FAST_HOLEY_ELEMENTS :
FAST_ELEMENTS;
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- kind,
- map_out,
- scratch,
- &done);
- } else if (can_have_holes) {
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- FAST_HOLEY_SMI_ELEMENTS,
- map_out,
- scratch,
- &done);
- }
- bind(&done);
-}
void MacroAssembler::LoadGlobalFunction(int index, Register function) {
=======================================
--- /branches/bleeding_edge/src/arm/macro-assembler-arm.h Thu Jan 30
13:18:41 2014 UTC
+++ /branches/bleeding_edge/src/arm/macro-assembler-arm.h Thu Feb 20
16:36:53 2014 UTC
@@ -570,12 +570,6 @@
Register scratch,
Label* no_map_match);
- // Load the initial map for new Arrays from a JSFunction.
- void LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- bool can_have_holes);
-
void LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function);
=======================================
--- /branches/bleeding_edge/src/ia32/macro-assembler-ia32.cc Tue Feb 18
13:03:24 2014 UTC
+++ /branches/bleeding_edge/src/ia32/macro-assembler-ia32.cc Thu Feb 20
16:36:53 2014 UTC
@@ -2687,31 +2687,6 @@
FixedArrayBase::kHeaderSize;
mov(map_in_out, FieldOperand(scratch, offset));
}
-
-
-void MacroAssembler::LoadInitialArrayMap(
- Register function_in, Register scratch,
- Register map_out, bool can_have_holes) {
- ASSERT(!function_in.is(map_out));
- Label done;
- mov(map_out, FieldOperand(function_in,
- JSFunction::kPrototypeOrInitialMapOffset));
- if (!FLAG_smi_only_arrays) {
- ElementsKind kind = can_have_holes ? FAST_HOLEY_ELEMENTS :
FAST_ELEMENTS;
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- kind,
- map_out,
- scratch,
- &done);
- } else if (can_have_holes) {
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- FAST_HOLEY_SMI_ELEMENTS,
- map_out,
- scratch,
- &done);
- }
- bind(&done);
-}
void MacroAssembler::LoadGlobalContext(Register global_context) {
=======================================
--- /branches/bleeding_edge/src/ia32/macro-assembler-ia32.h Tue Feb 4
13:53:41 2014 UTC
+++ /branches/bleeding_edge/src/ia32/macro-assembler-ia32.h Thu Feb 20
16:36:53 2014 UTC
@@ -262,12 +262,6 @@
Register scratch,
Label* no_map_match);
- // Load the initial map for new Arrays from a JSFunction.
- void LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- bool can_have_holes);
-
void LoadGlobalContext(Register global_context);
// Load the global function with the given index.
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Tue Feb 18
13:03:24 2014 UTC
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Thu Feb 20
16:36:53 2014 UTC
@@ -4428,31 +4428,6 @@
FixedArrayBase::kHeaderSize;
lw(map_in_out, FieldMemOperand(scratch, offset));
}
-
-
-void MacroAssembler::LoadInitialArrayMap(
- Register function_in, Register scratch,
- Register map_out, bool can_have_holes) {
- ASSERT(!function_in.is(map_out));
- Label done;
- lw(map_out, FieldMemOperand(function_in,
- JSFunction::kPrototypeOrInitialMapOffset));
- if (!FLAG_smi_only_arrays) {
- ElementsKind kind = can_have_holes ? FAST_HOLEY_ELEMENTS :
FAST_ELEMENTS;
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- kind,
- map_out,
- scratch,
- &done);
- } else if (can_have_holes) {
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- FAST_HOLEY_SMI_ELEMENTS,
- map_out,
- scratch,
- &done);
- }
- bind(&done);
-}
void MacroAssembler::LoadGlobalFunction(int index, Register function) {
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.h Thu Feb 6
01:10:06 2014 UTC
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.h Thu Feb 20
16:36:53 2014 UTC
@@ -871,12 +871,6 @@
Register scratch,
Label* no_map_match);
- // Load the initial map for new Arrays from a JSFunction.
- void LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- bool can_have_holes);
-
void LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function);
=======================================
--- /branches/bleeding_edge/src/x64/macro-assembler-x64.cc Tue Feb 18
13:03:24 2014 UTC
+++ /branches/bleeding_edge/src/x64/macro-assembler-x64.cc Thu Feb 20
16:36:53 2014 UTC
@@ -4529,30 +4529,6 @@
movp(map_in_out, FieldOperand(scratch, offset));
}
-
-void MacroAssembler::LoadInitialArrayMap(
- Register function_in, Register scratch,
- Register map_out, bool can_have_holes) {
- ASSERT(!function_in.is(map_out));
- Label done;
- movp(map_out, FieldOperand(function_in,
- JSFunction::kPrototypeOrInitialMapOffset));
- if (!FLAG_smi_only_arrays) {
- ElementsKind kind = can_have_holes ? FAST_HOLEY_ELEMENTS :
FAST_ELEMENTS;
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- kind,
- map_out,
- scratch,
- &done);
- } else if (can_have_holes) {
- LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
- FAST_HOLEY_SMI_ELEMENTS,
- map_out,
- scratch,
- &done);
- }
- bind(&done);
-}
#ifdef _WIN64
static const int kRegisterPassedArguments = 4;
=======================================
--- /branches/bleeding_edge/src/x64/macro-assembler-x64.h Tue Feb 11
01:28:08 2014 UTC
+++ /branches/bleeding_edge/src/x64/macro-assembler-x64.h Thu Feb 20
16:36:53 2014 UTC
@@ -1234,12 +1234,6 @@
Register scratch,
Label* no_map_match);
- // Load the initial map for new Arrays from a JSFunction.
- void LoadInitialArrayMap(Register function_in,
- Register scratch,
- Register map_out,
- bool can_have_holes);
-
// Load the global function with the given index.
void LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.