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

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

Issue 9852007: MIPS: Improve polymorphic loads on single slots. (Closed)
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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. 1 // Copyright 2012 the V8 project authors. All rights reserved.
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 4224 matching lines...) Expand 10 before | Expand all | Expand 10 after
4235 DeoptimizeIf(al, env); 4235 DeoptimizeIf(al, env);
4236 __ bind(&success); 4236 __ bind(&success);
4237 } 4237 }
4238 4238
4239 4239
4240 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { 4240 void LCodeGen::DoCheckMaps(LCheckMaps* instr) {
4241 Register scratch = scratch0(); 4241 Register scratch = scratch0();
4242 LOperand* input = instr->InputAt(0); 4242 LOperand* input = instr->InputAt(0);
4243 ASSERT(input->IsRegister()); 4243 ASSERT(input->IsRegister());
4244 Register reg = ToRegister(input); 4244 Register reg = ToRegister(input);
4245 Handle<Map> map = instr->hydrogen()->map(); 4245 Label success;
4246 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(), 4246 SmallMapList* map_set = instr->hydrogen()->map_set();
4247 instr->environment()); 4247 for (int i = 0; i < map_set->length() - 1; i++) {
4248 Handle<Map> map = map_set->at(i);
4249 __ CompareMapAndBranch(
4250 reg, scratch, map, &success, eq, &success, REQUIRE_EXACT_MAP);
4251 }
4252 Handle<Map> map = map_set->last();
4253 DoCheckMapCommon(reg, scratch, map, REQUIRE_EXACT_MAP, instr->environment());
4254 __ bind(&success);
4248 } 4255 }
4249 4256
4250 4257
4251 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { 4258 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) {
4252 DoubleRegister value_reg = ToDoubleRegister(instr->unclamped()); 4259 DoubleRegister value_reg = ToDoubleRegister(instr->unclamped());
4253 Register result_reg = ToRegister(instr->result()); 4260 Register result_reg = ToRegister(instr->result());
4254 DoubleRegister temp_reg = ToDoubleRegister(instr->TempAt(0)); 4261 DoubleRegister temp_reg = ToDoubleRegister(instr->TempAt(0));
4255 __ ClampDoubleToUint8(result_reg, value_reg, temp_reg); 4262 __ ClampDoubleToUint8(result_reg, value_reg, temp_reg);
4256 } 4263 }
4257 4264
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
5047 __ Subu(scratch, result, scratch); 5054 __ Subu(scratch, result, scratch);
5048 __ lw(result, FieldMemOperand(scratch, 5055 __ lw(result, FieldMemOperand(scratch,
5049 FixedArray::kHeaderSize - kPointerSize)); 5056 FixedArray::kHeaderSize - kPointerSize));
5050 __ bind(&done); 5057 __ bind(&done);
5051 } 5058 }
5052 5059
5053 5060
5054 #undef __ 5061 #undef __
5055 5062
5056 } } // namespace v8::internal 5063 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698