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

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

Issue 1264103005: MIPS: Fix reg use in SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 | src/mips64/lithium-codegen-mips64.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 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 const Register scratch = scratch1(); 2179 const Register scratch = scratch1();
2180 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); 2180 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
2181 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); 2181 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE));
2182 } 2182 }
2183 2183
2184 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { 2184 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
2185 // SIMD value -> true. 2185 // SIMD value -> true.
2186 Label not_simd; 2186 Label not_simd;
2187 const Register scratch = scratch1(); 2187 const Register scratch = scratch1();
2188 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); 2188 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
2189 __ Branch(&not_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE)); 2189 __ Branch(&not_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE));
2190 __ Branch(instr->TrueLabel(chunk_), le, scratch, 2190 __ Branch(instr->TrueLabel(chunk_), le, scratch,
2191 Operand(LAST_SIMD_VALUE_TYPE)); 2191 Operand(LAST_SIMD_VALUE_TYPE));
2192 __ bind(&not_simd); 2192 __ bind(&not_simd);
2193 } 2193 }
2194 2194
2195 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { 2195 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
2196 // heap number -> false iff +0, -0, or NaN. 2196 // heap number -> false iff +0, -0, or NaN.
2197 DoubleRegister dbl_scratch = double_scratch0(); 2197 DoubleRegister dbl_scratch = double_scratch0();
2198 Label not_heap_number; 2198 Label not_heap_number;
2199 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); 2199 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex);
(...skipping 3904 matching lines...) Expand 10 before | Expand all | Expand 10 after
6104 __ Push(at, ToRegister(instr->function())); 6104 __ Push(at, ToRegister(instr->function()));
6105 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6105 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6106 RecordSafepoint(Safepoint::kNoLazyDeopt); 6106 RecordSafepoint(Safepoint::kNoLazyDeopt);
6107 } 6107 }
6108 6108
6109 6109
6110 #undef __ 6110 #undef __
6111 6111
6112 } // namespace internal 6112 } // namespace internal
6113 } // namespace v8 6113 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698