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

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

Issue 228943009: MIPS: Add big-endian support for MIPS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 6 years, 8 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/macro-assembler-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 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 key = ToRegister(instr->key()); 3212 key = ToRegister(instr->key());
3213 int shift_size = (instr->hydrogen()->key()->representation().IsSmi()) 3213 int shift_size = (instr->hydrogen()->key()->representation().IsSmi())
3214 ? (element_size_shift - kSmiTagSize) : element_size_shift; 3214 ? (element_size_shift - kSmiTagSize) : element_size_shift;
3215 __ sll(at, key, shift_size); 3215 __ sll(at, key, shift_size);
3216 __ Addu(scratch, scratch, at); 3216 __ Addu(scratch, scratch, at);
3217 } 3217 }
3218 3218
3219 __ ldc1(result, MemOperand(scratch)); 3219 __ ldc1(result, MemOperand(scratch));
3220 3220
3221 if (instr->hydrogen()->RequiresHoleCheck()) { 3221 if (instr->hydrogen()->RequiresHoleCheck()) {
3222 __ lw(scratch, MemOperand(scratch, sizeof(kHoleNanLower32))); 3222 __ lw(scratch, MemOperand(scratch, kHoleNanUpper32Offset));
3223 DeoptimizeIf(eq, instr->environment(), scratch, Operand(kHoleNanUpper32)); 3223 DeoptimizeIf(eq, instr->environment(), scratch, Operand(kHoleNanUpper32));
3224 } 3224 }
3225 } 3225 }
3226 3226
3227 3227
3228 void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) { 3228 void LCodeGen::DoLoadKeyedFixedArray(LLoadKeyed* instr) {
3229 Register elements = ToRegister(instr->elements()); 3229 Register elements = ToRegister(instr->elements());
3230 Register result = ToRegister(instr->result()); 3230 Register result = ToRegister(instr->result());
3231 Register scratch = scratch0(); 3231 Register scratch = scratch0();
3232 Register store_base = scratch; 3232 Register store_base = scratch;
(...skipping 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after
5910 __ lw(result, FieldMemOperand(scratch, 5910 __ lw(result, FieldMemOperand(scratch,
5911 FixedArray::kHeaderSize - kPointerSize)); 5911 FixedArray::kHeaderSize - kPointerSize));
5912 __ bind(deferred->exit()); 5912 __ bind(deferred->exit());
5913 __ bind(&done); 5913 __ bind(&done);
5914 } 5914 }
5915 5915
5916 5916
5917 #undef __ 5917 #undef __
5918 5918
5919 } } // namespace v8::internal 5919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698