Commit 93376d8b authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Get rid of unused STRING_ADD_ERECT_FRAME flag.

R=svenpanne@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17373 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 008b8711
......@@ -4674,33 +4674,11 @@ void StringAddStub::Generate(MacroAssembler* masm) {
// Just jump to runtime to add the two strings.
__ bind(&call_runtime);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ CallRuntime(Runtime::kStringAdd, 2);
}
__ Ret();
} else {
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
}
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
if (call_builtin.is_linked()) {
__ bind(&call_builtin);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ InvokeBuiltin(builtin_id, CALL_FUNCTION);
}
__ Ret();
} else {
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
}
......
......@@ -405,9 +405,7 @@ enum StringAddFlags {
// Check right parameter.
STRING_ADD_CHECK_RIGHT = 1 << 1,
// Check both parameters.
STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT,
// Stub needs a frame before calling the runtime
STRING_ADD_ERECT_FRAME = 1 << 2
STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT
};
} } // namespace v8::internal
......
......@@ -3938,33 +3938,11 @@ void StringAddStub::Generate(MacroAssembler* masm) {
__ Drop(2);
// Just jump to runtime to add the two strings.
__ bind(&call_runtime);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm, ecx);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ CallRuntime(Runtime::kStringAdd, 2);
}
__ ret(0);
} else {
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
}
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
if (call_builtin.is_linked()) {
__ bind(&call_builtin);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm, ecx);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ InvokeBuiltin(builtin_id, CALL_FUNCTION);
}
__ ret(0);
} else {
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
}
......
......@@ -4781,33 +4781,11 @@ void StringAddStub::Generate(MacroAssembler* masm) {
// Just jump to runtime to add the two strings.
__ bind(&call_runtime);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm);
// Build a frame.
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ CallRuntime(Runtime::kStringAdd, 2);
}
__ Ret();
} else {
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
}
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
if (call_builtin.is_linked()) {
__ bind(&call_builtin);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm);
// Build a frame.
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ InvokeBuiltin(builtin_id, CALL_FUNCTION);
}
__ Ret();
} else {
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
}
......
......@@ -3775,34 +3775,11 @@ void StringAddStub::Generate(MacroAssembler* masm) {
// Just jump to runtime to add the two strings.
__ bind(&call_runtime);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm, rcx);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ CallRuntime(Runtime::kStringAdd, 2);
}
__ Ret();
} else {
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
}
__ TailCallRuntime(Runtime::kStringAdd, 2, 1);
if (call_builtin.is_linked()) {
__ bind(&call_builtin);
if ((flags_ & STRING_ADD_ERECT_FRAME) != 0) {
GenerateRegisterArgsPop(masm, rcx);
// Build a frame
{
FrameScope scope(masm, StackFrame::INTERNAL);
GenerateRegisterArgsPush(masm);
__ InvokeBuiltin(builtin_id, CALL_FUNCTION);
}
__ Ret();
} else {
__ InvokeBuiltin(builtin_id, JUMP_FUNCTION);
}
__ InvokeBuiltin(builtin_id, JUMP_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