From a24617a9458c64cac1a6985b1c3c9da49a2f3f16 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Mon, 24 Jun 2013 18:28:06 +0000 Subject: [PATCH] MIPS: Rename Literal::handle to Literal::value Port r15280 (1a287b2) Original commit message: Just a completely mechanical change... BUG= Review URL: https://codereview.chromium.org/17583011 Patch from Balazs Kilvady . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15302 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/full-codegen-mips.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc index bf13d91..d416a3b 100644 --- a/src/mips/full-codegen-mips.cc +++ b/src/mips/full-codegen-mips.cc @@ -1694,11 +1694,11 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { ASSERT(!CompileTimeValue::IsCompileTimeValue(property->value())); // Fall through. case ObjectLiteral::Property::COMPUTED: - if (key->handle()->IsInternalizedString()) { + if (key->value()->IsInternalizedString()) { if (property->emit_store()) { VisitForAccumulatorValue(value); __ mov(a0, result_register()); - __ li(a2, Operand(key->handle())); + __ li(a2, Operand(key->value())); __ lw(a1, MemOperand(sp)); Handle ic = is_classic_mode() ? isolate()->builtins()->StoreIC_Initialize() @@ -2268,7 +2268,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { SetSourcePosition(prop->position()); Literal* key = prop->key()->AsLiteral(); __ mov(a0, result_register()); - __ li(a2, Operand(key->handle())); + __ li(a2, Operand(key->value())); // Call load IC. It has arguments receiver and property name a0 and a2. Handle ic = isolate()->builtins()->LoadIC_Initialize(); CallIC(ic, RelocInfo::CODE_TARGET, prop->PropertyFeedbackId()); @@ -2430,7 +2430,7 @@ void FullCodeGenerator::EmitAssignment(Expression* expr) { VisitForAccumulatorValue(prop->obj()); __ mov(a1, result_register()); __ pop(a0); // Restore value. - __ li(a2, Operand(prop->key()->AsLiteral()->handle())); + __ li(a2, Operand(prop->key()->AsLiteral()->value())); Handle ic = is_classic_mode() ? isolate()->builtins()->StoreIC_Initialize() : isolate()->builtins()->StoreIC_Initialize_Strict(); @@ -2561,7 +2561,7 @@ void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { // Record source code position before IC call. SetSourcePosition(expr->position()); __ mov(a0, result_register()); // Load the value. - __ li(a2, Operand(prop->key()->AsLiteral()->handle())); + __ li(a2, Operand(prop->key()->AsLiteral()->value())); __ pop(a1); Handle ic = is_classic_mode() @@ -2839,7 +2839,7 @@ void FullCodeGenerator::VisitCall(Call* expr) { } if (property->key()->IsPropertyName()) { EmitCallWithIC(expr, - property->key()->AsLiteral()->handle(), + property->key()->AsLiteral()->value(), RelocInfo::CODE_TARGET); } else { EmitKeyedCallWithIC(expr, property->key()); @@ -3444,7 +3444,7 @@ void FullCodeGenerator::EmitDateField(CallRuntime* expr) { ZoneList* args = expr->arguments(); ASSERT(args->length() == 2); ASSERT_NE(NULL, args->at(1)->AsLiteral()); - Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->handle())); + Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); VisitForAccumulatorValue(args->at(0)); // Load the object. @@ -3876,7 +3876,7 @@ void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { ASSERT_EQ(2, args->length()); ASSERT_NE(NULL, args->at(0)->AsLiteral()); - int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value(); + int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->value()))->value(); Handle jsfunction_result_caches( isolate()->native_context()->jsfunction_result_caches()); @@ -4551,7 +4551,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { break; case NAMED_PROPERTY: { __ mov(a0, result_register()); // Value. - __ li(a2, Operand(prop->key()->AsLiteral()->handle())); // Name. + __ li(a2, Operand(prop->key()->AsLiteral()->value())); // Name. __ pop(a1); // Receiver. Handle ic = is_classic_mode() ? isolate()->builtins()->StoreIC_Initialize() -- 2.7.4