Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 383913002: MIPS: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed typo. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4113 matching lines...) Expand 10 before | Expand all | Expand 10 after
4124 EMIT_REMEMBERED_SET, 4124 EMIT_REMEMBERED_SET,
4125 instr->hydrogen()->SmiCheckForWriteBarrier(), 4125 instr->hydrogen()->SmiCheckForWriteBarrier(),
4126 instr->hydrogen()->PointersToHereCheckForValue()); 4126 instr->hydrogen()->PointersToHereCheckForValue());
4127 } 4127 }
4128 } 4128 }
4129 } 4129 }
4130 4130
4131 4131
4132 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { 4132 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
4133 ASSERT(ToRegister(instr->context()).is(cp)); 4133 ASSERT(ToRegister(instr->context()).is(cp));
4134 ASSERT(ToRegister(instr->object()).is(a1)); 4134 ASSERT(ToRegister(instr->object()).is(StoreIC::ReceiverRegister()));
4135 ASSERT(ToRegister(instr->value()).is(a0)); 4135 ASSERT(ToRegister(instr->value()).is(StoreIC::ValueRegister()));
4136 4136
4137 // Name is always in a2. 4137 __ li(StoreIC::NameRegister(), Operand(instr->name()));
4138 __ li(a2, Operand(instr->name()));
4139 Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode()); 4138 Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->strict_mode());
4140 CallCode(ic, RelocInfo::CODE_TARGET, instr); 4139 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4141 } 4140 }
4142 4141
4143 4142
4144 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { 4143 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
4145 Condition cc = instr->hydrogen()->allow_equality() ? hi : hs; 4144 Condition cc = instr->hydrogen()->allow_equality() ? hi : hs;
4146 Operand operand(0); 4145 Operand operand(0);
4147 Register reg; 4146 Register reg;
4148 if (instr->index()->IsConstantOperand()) { 4147 if (instr->index()->IsConstantOperand()) {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
4356 } else if (instr->hydrogen()->value()->representation().IsDouble()) { 4355 } else if (instr->hydrogen()->value()->representation().IsDouble()) {
4357 DoStoreKeyedFixedDoubleArray(instr); 4356 DoStoreKeyedFixedDoubleArray(instr);
4358 } else { 4357 } else {
4359 DoStoreKeyedFixedArray(instr); 4358 DoStoreKeyedFixedArray(instr);
4360 } 4359 }
4361 } 4360 }
4362 4361
4363 4362
4364 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { 4363 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) {
4365 ASSERT(ToRegister(instr->context()).is(cp)); 4364 ASSERT(ToRegister(instr->context()).is(cp));
4366 ASSERT(ToRegister(instr->object()).is(a2)); 4365 ASSERT(ToRegister(instr->object()).is(KeyedStoreIC::ReceiverRegister()));
4367 ASSERT(ToRegister(instr->key()).is(a1)); 4366 ASSERT(ToRegister(instr->key()).is(KeyedStoreIC::NameRegister()));
4368 ASSERT(ToRegister(instr->value()).is(a0)); 4367 ASSERT(ToRegister(instr->value()).is(KeyedStoreIC::ValueRegister()));
4369 4368
4370 Handle<Code> ic = (instr->strict_mode() == STRICT) 4369 Handle<Code> ic = (instr->strict_mode() == STRICT)
4371 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() 4370 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
4372 : isolate()->builtins()->KeyedStoreIC_Initialize(); 4371 : isolate()->builtins()->KeyedStoreIC_Initialize();
4373 CallCode(ic, RelocInfo::CODE_TARGET, instr); 4372 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4374 } 4373 }
4375 4374
4376 4375
4377 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { 4376 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) {
4378 Register object_reg = ToRegister(instr->object()); 4377 Register object_reg = ToRegister(instr->object());
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 __ li(at, scope_info); 5883 __ li(at, scope_info);
5885 __ Push(at, ToRegister(instr->function())); 5884 __ Push(at, ToRegister(instr->function()));
5886 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5885 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5887 RecordSafepoint(Safepoint::kNoLazyDeopt); 5886 RecordSafepoint(Safepoint::kNoLazyDeopt);
5888 } 5887 }
5889 5888
5890 5889
5891 #undef __ 5890 #undef __
5892 5891
5893 } } // namespace v8::internal 5892 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698