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
This commit is contained in:
parent
508123cbe1
commit
baf2614853
@ -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) {
|
||||
// Load the global or builtins object from the current context.
|
||||
Ldr(function, GlobalObjectMemOperand());
|
||||
|
@ -1886,12 +1886,6 @@ class MacroAssembler : public Assembler {
|
||||
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);
|
||||
|
||||
|
@ -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) {
|
||||
// Load the global or builtins object from the current context.
|
||||
ldr(function,
|
||||
|
@ -570,12 +570,6 @@ class MacroAssembler: public Assembler {
|
||||
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);
|
||||
|
||||
|
@ -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) {
|
||||
// Load the global or builtins object from the current context.
|
||||
mov(global_context,
|
||||
|
@ -262,12 +262,6 @@ class MacroAssembler: public Assembler {
|
||||
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.
|
||||
|
@ -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) {
|
||||
// Load the global or builtins object from the current context.
|
||||
lw(function,
|
||||
|
@ -871,12 +871,6 @@ class MacroAssembler: public Assembler {
|
||||
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);
|
||||
|
||||
|
@ -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
|
||||
static const int kRegisterPassedArguments = 4;
|
||||
#else
|
||||
|
@ -1234,12 +1234,6 @@ class MacroAssembler: public Assembler {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user