Commit baf26148 authored by jacob.bramley@arm.com's avatar jacob.bramley@arm.com

Remove the unused LoadInitialArrayMap.

BUG=
R=ulan@chromium.org

Review URL: https://codereview.chromium.org/173883003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19513 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 508123cb
...@@ -4710,29 +4710,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( ...@@ -4710,29 +4710,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
} }
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) { void MacroAssembler::LoadArrayFunction(Register function) {
// Load the global or builtins object from the current context. // Load the global or builtins object from the current context.
Ldr(function, GlobalObjectMemOperand()); Ldr(function, GlobalObjectMemOperand());
......
...@@ -1886,12 +1886,6 @@ class MacroAssembler : public Assembler { ...@@ -1886,12 +1886,6 @@ class MacroAssembler : public Assembler {
Register scratch, Register scratch,
Label* no_map_match); 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 LoadArrayFunction(Register function);
void LoadGlobalFunction(int index, Register function); void LoadGlobalFunction(int index, Register function);
......
...@@ -2890,31 +2890,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( ...@@ -2890,31 +2890,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
} }
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) { void MacroAssembler::LoadGlobalFunction(int index, Register function) {
// Load the global or builtins object from the current context. // Load the global or builtins object from the current context.
ldr(function, ldr(function,
......
...@@ -570,12 +570,6 @@ class MacroAssembler: public Assembler { ...@@ -570,12 +570,6 @@ class MacroAssembler: public Assembler {
Register scratch, Register scratch,
Label* no_map_match); 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 LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function); void LoadArrayFunction(Register function);
......
...@@ -2689,31 +2689,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( ...@@ -2689,31 +2689,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
} }
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) { void MacroAssembler::LoadGlobalContext(Register global_context) {
// Load the global or builtins object from the current context. // Load the global or builtins object from the current context.
mov(global_context, mov(global_context,
......
...@@ -262,12 +262,6 @@ class MacroAssembler: public Assembler { ...@@ -262,12 +262,6 @@ class MacroAssembler: public Assembler {
Register scratch, Register scratch,
Label* no_map_match); 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); void LoadGlobalContext(Register global_context);
// Load the global function with the given index. // Load the global function with the given index.
......
...@@ -4430,31 +4430,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( ...@@ -4430,31 +4430,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
} }
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) { void MacroAssembler::LoadGlobalFunction(int index, Register function) {
// Load the global or builtins object from the current context. // Load the global or builtins object from the current context.
lw(function, lw(function,
......
...@@ -871,12 +871,6 @@ class MacroAssembler: public Assembler { ...@@ -871,12 +871,6 @@ class MacroAssembler: public Assembler {
Register scratch, Register scratch,
Label* no_map_match); 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 LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function); void LoadArrayFunction(Register function);
......
...@@ -4530,30 +4530,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional( ...@@ -4530,30 +4530,6 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
} }
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 #ifdef _WIN64
static const int kRegisterPassedArguments = 4; static const int kRegisterPassedArguments = 4;
#else #else
......
...@@ -1234,12 +1234,6 @@ class MacroAssembler: public Assembler { ...@@ -1234,12 +1234,6 @@ class MacroAssembler: public Assembler {
Register scratch, Register scratch,
Label* no_map_match); 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. // Load the global function with the given index.
void LoadGlobalFunction(int index, Register function); void LoadGlobalFunction(int index, Register function);
void LoadArrayFunction(Register function); void LoadArrayFunction(Register function);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment