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

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

Issue 367053002: MIPS: KeyedLoadIC should have same register spec as LoadIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 3309 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 ASSERT_EQ(-1, shift_size); 3320 ASSERT_EQ(-1, shift_size);
3321 __ sra(scratch0(), key, 1); 3321 __ sra(scratch0(), key, 1);
3322 __ Addu(scratch0(), base, scratch0()); 3322 __ Addu(scratch0(), base, scratch0());
3323 return MemOperand(scratch0(), base_offset); 3323 return MemOperand(scratch0(), base_offset);
3324 } 3324 }
3325 } 3325 }
3326 3326
3327 3327
3328 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3328 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3329 ASSERT(ToRegister(instr->context()).is(cp)); 3329 ASSERT(ToRegister(instr->context()).is(cp));
3330 ASSERT(ToRegister(instr->object()).is(KeyedLoadIC::ReceiverRegister())); 3330 ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister()));
3331 ASSERT(ToRegister(instr->key()).is(KeyedLoadIC::NameRegister())); 3331 ASSERT(ToRegister(instr->key()).is(LoadIC::NameRegister()));
3332 3332
3333 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); 3333 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
3334 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3334 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3335 } 3335 }
3336 3336
3337 3337
3338 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3338 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3339 Register scratch = scratch0(); 3339 Register scratch = scratch0();
3340 Register temp = scratch1(); 3340 Register temp = scratch1();
3341 Register result = ToRegister(instr->result()); 3341 Register result = ToRegister(instr->result());
(...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 __ li(at, scope_info); 5884 __ li(at, scope_info);
5885 __ Push(at, ToRegister(instr->function())); 5885 __ Push(at, ToRegister(instr->function()));
5886 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5886 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5887 RecordSafepoint(Safepoint::kNoLazyDeopt); 5887 RecordSafepoint(Safepoint::kNoLazyDeopt);
5888 } 5888 }
5889 5889
5890 5890
5891 #undef __ 5891 #undef __
5892 5892
5893 } } // namespace v8::internal 5893 } } // 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