| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 762726711b55cdb6e29d1db718ad20e537a2b18a..588b04e2b5b282f37c5eb90028e3699d8d98b2fa 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -468,17 +468,6 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EffectContext::Plug(Variable* var) const {
|
| - DCHECK(var->IsStackAllocated() || var->IsContextSlot());
|
| -}
|
| -
|
| -
|
| -void FullCodeGenerator::AccumulatorValueContext::Plug(Variable* var) const {
|
| - DCHECK(var->IsStackAllocated() || var->IsContextSlot());
|
| - codegen()->GetVar(result_register(), var);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::StackValueContext::Plug(Variable* var) const {
|
| DCHECK(var->IsStackAllocated() || var->IsContextSlot());
|
| MemOperand operand = codegen()->VarOperand(var, result_register());
|
| @@ -487,14 +476,6 @@ void FullCodeGenerator::StackValueContext::Plug(Variable* var) const {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::TestContext::Plug(Variable* var) const {
|
| - // For simplicity we always test the accumulator register.
|
| - codegen()->GetVar(result_register(), var);
|
| - codegen()->PrepareForBailoutBeforeSplit(condition(), false, NULL, NULL);
|
| - codegen()->DoTest(this);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EffectContext::Plug(Heap::RootListIndex index) const {
|
| UNREACHABLE(); // Not used on IA32.
|
| }
|
| @@ -645,10 +626,6 @@ void FullCodeGenerator::TestContext::Plug(Label* materialize_true,
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EffectContext::Plug(bool flag) const {
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::AccumulatorValueContext::Plug(bool flag) const {
|
| Handle<Object> value = flag
|
| ? isolate()->factory()->true_value()
|
| @@ -909,35 +886,6 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| }
|
|
|
|
|
| -void FullCodeGenerator::VisitImportDeclaration(ImportDeclaration* declaration) {
|
| - VariableProxy* proxy = declaration->proxy();
|
| - Variable* variable = proxy->var();
|
| - switch (variable->location()) {
|
| - case VariableLocation::GLOBAL:
|
| - case VariableLocation::UNALLOCATED:
|
| - // TODO(rossberg)
|
| - break;
|
| -
|
| - case VariableLocation::CONTEXT: {
|
| - Comment cmnt(masm_, "[ ImportDeclaration");
|
| - EmitDebugCheckDeclarationContext(variable);
|
| - // TODO(rossberg)
|
| - break;
|
| - }
|
| -
|
| - case VariableLocation::PARAMETER:
|
| - case VariableLocation::LOCAL:
|
| - case VariableLocation::LOOKUP:
|
| - UNREACHABLE();
|
| - }
|
| -}
|
| -
|
| -
|
| -void FullCodeGenerator::VisitExportDeclaration(ExportDeclaration* declaration) {
|
| - // TODO(rossberg)
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
|
| // Call the runtime to declare the globals.
|
| __ push(esi); // The context is the first argument.
|
| @@ -1254,12 +1202,6 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
|
| }
|
|
|
|
|
| -void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) {
|
| - Comment cmnt(masm_, "[ VariableProxy");
|
| - EmitVariableLoad(expr);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitSetHomeObjectIfNeeded(Expression* initializer,
|
| int offset,
|
| FeedbackVectorICSlot slot) {
|
| @@ -3797,33 +3739,6 @@ void FullCodeGenerator::EmitClassOf(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitSubString(CallRuntime* expr) {
|
| - // Load the arguments on the stack and call the stub.
|
| - SubStringStub stub(isolate());
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK(args->length() == 3);
|
| - VisitForStackValue(args->at(0));
|
| - VisitForStackValue(args->at(1));
|
| - VisitForStackValue(args->at(2));
|
| - __ CallStub(&stub);
|
| - context()->Plug(eax);
|
| -}
|
| -
|
| -
|
| -void FullCodeGenerator::EmitRegExpExec(CallRuntime* expr) {
|
| - // Load the arguments on the stack and call the stub.
|
| - RegExpExecStub stub(isolate());
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK(args->length() == 4);
|
| - VisitForStackValue(args->at(0));
|
| - VisitForStackValue(args->at(1));
|
| - VisitForStackValue(args->at(2));
|
| - VisitForStackValue(args->at(3));
|
| - __ CallStub(&stub);
|
| - context()->Plug(eax);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitValueOf(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() == 1);
|
| @@ -3971,19 +3886,6 @@ void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitMathPow(CallRuntime* expr) {
|
| - // Load the arguments on the stack and call the runtime function.
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK(args->length() == 2);
|
| - VisitForStackValue(args->at(0));
|
| - VisitForStackValue(args->at(1));
|
| -
|
| - MathPowStub stub(isolate(), MathPowStub::ON_STACK);
|
| - __ CallStub(&stub);
|
| - context()->Plug(eax);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() == 2);
|
| @@ -4152,19 +4054,6 @@ void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK_EQ(2, args->length());
|
| -
|
| - VisitForStackValue(args->at(0));
|
| - VisitForStackValue(args->at(1));
|
| -
|
| - StringCompareStub stub(isolate());
|
| - __ CallStub(&stub);
|
| - context()->Plug(eax);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() >= 2);
|
|
|