Revision: 18603
Author: [email protected]
Date: Tue Jan 14 19:38:12 2014 UTC
Log: MIPS: Remove HCallGlobal and merge uses with HCallNamed.
Port r18595 (957a383)
BUG=
[email protected]
Review URL: https://codereview.chromium.org/135053004
Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=18603
Modified:
/branches/bleeding_edge/src/mips/lithium-codegen-mips.cc
/branches/bleeding_edge/src/mips/lithium-mips.cc
/branches/bleeding_edge/src/mips/lithium-mips.h
=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Tue Jan 14
18:33:36 2014 UTC
+++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Tue Jan 14
19:38:12 2014 UTC
@@ -3925,17 +3925,6 @@
CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
}
}
-
-
-void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
- ASSERT(ToRegister(instr->context()).is(cp));
- ASSERT(ToRegister(instr->result()).is(v0));
-
- int arity = instr->arity();
- Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
- __ li(a2, Operand(instr->name()));
- CallCode(ic, RelocInfo::CODE_TARGET, instr);
-}
void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
=======================================
--- /branches/bleeding_edge/src/mips/lithium-mips.cc Tue Jan 14 16:26:11
2014 UTC
+++ /branches/bleeding_edge/src/mips/lithium-mips.cc Tue Jan 14 19:38:12
2014 UTC
@@ -316,12 +316,6 @@
SmartArrayPointer<char> name_string = name()->ToCString();
stream->Add("%s #%d / ", name_string.get(), arity());
}
-
-
-void LCallGlobal::PrintDataTo(StringStream* stream) {
- SmartArrayPointer<char> name_string = name()->ToCString();
- stream->Add("%s #%d / ", name_string.get(), arity());
-}
void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
@@ -1192,12 +1186,6 @@
LOperand* context = UseFixed(instr->context(), cp);
return MarkAsCall(DefineFixed(new(zone()) LCallNamed(context), v0),
instr);
}
-
-
-LInstruction* LChunkBuilder::DoCallGlobal(HCallGlobal* instr) {
- LOperand* context = UseFixed(instr->context(), cp);
- return MarkAsCall(DefineFixed(new(zone()) LCallGlobal(context), v0),
instr);
-}
LInstruction* LChunkBuilder::DoCallKnownGlobal(HCallKnownGlobal* instr) {
=======================================
--- /branches/bleeding_edge/src/mips/lithium-mips.h Tue Jan 7 14:36:26
2014 UTC
+++ /branches/bleeding_edge/src/mips/lithium-mips.h Tue Jan 14 19:38:12
2014 UTC
@@ -54,7 +54,6 @@
V(Branch) \
V(CallConstantFunction) \
V(CallFunction) \
- V(CallGlobal) \
V(CallKeyed) \
V(CallKnownGlobal) \
V(CallNamed) \
@@ -1896,24 +1895,6 @@
DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
DECLARE_HYDROGEN_ACCESSOR(CallFunction)
- int arity() const { return hydrogen()->argument_count() - 1; }
-};
-
-
-class LCallGlobal V8_FINAL : public LTemplateInstruction<1, 1, 0> {
- public:
- explicit LCallGlobal(LOperand* context) {
- inputs_[0] = context;
- }
-
- LOperand* context() { return inputs_[0]; }
-
- DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
- DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
-
- virtual void PrintDataTo(StringStream* stream);
-
- Handle<String> name() const {return hydrogen()->name(); }
int arity() const { return hydrogen()->argument_count() - 1; }
};
--
--
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.