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

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

Issue 9616014: Improve polymorphic loads on single slots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamed CheckMap to CheckMaps. 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('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. 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 4123 matching lines...) Expand 10 before | Expand all | Expand 10 after
4134 Handle<Map> map, 4134 Handle<Map> map,
4135 CompareMapMode mode, 4135 CompareMapMode mode,
4136 LEnvironment* env) { 4136 LEnvironment* env) {
4137 Label success; 4137 Label success;
4138 __ CompareMapAndBranch(reg, scratch, map, &success, eq, &success, mode); 4138 __ CompareMapAndBranch(reg, scratch, map, &success, eq, &success, mode);
4139 DeoptimizeIf(al, env); 4139 DeoptimizeIf(al, env);
4140 __ bind(&success); 4140 __ bind(&success);
4141 } 4141 }
4142 4142
4143 4143
4144 void LCodeGen::DoCheckMap(LCheckMap* instr) { 4144 void LCodeGen::DoCheckMaps(LCheckMaps* instr) {
4145 Register scratch = scratch0(); 4145 Register scratch = scratch0();
4146 LOperand* input = instr->InputAt(0); 4146 LOperand* input = instr->InputAt(0);
4147 ASSERT(input->IsRegister()); 4147 ASSERT(input->IsRegister());
4148 Register reg = ToRegister(input); 4148 Register reg = ToRegister(input);
4149 Handle<Map> map = instr->hydrogen()->map(); 4149 Handle<Map> map = instr->hydrogen()->map();
4150 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(), 4150 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(),
4151 instr->environment()); 4151 instr->environment());
4152 } 4152 }
4153 4153
4154 4154
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
4951 __ Subu(scratch, result, scratch); 4951 __ Subu(scratch, result, scratch);
4952 __ lw(result, FieldMemOperand(scratch, 4952 __ lw(result, FieldMemOperand(scratch,
4953 FixedArray::kHeaderSize - kPointerSize)); 4953 FixedArray::kHeaderSize - kPointerSize));
4954 __ bind(&done); 4954 __ bind(&done);
4955 } 4955 }
4956 4956
4957 4957
4958 #undef __ 4958 #undef __
4959 4959
4960 } } // namespace v8::internal 4960 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698