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

Side by Side Diff: src/mips64/lithium-codegen-mips64.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 | « src/mips/lithium-codegen-mips.cc ('k') | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 const Register scratch = scratch1(); 2280 const Register scratch = scratch1();
2281 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); 2281 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
2282 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); 2282 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE));
2283 } 2283 }
2284 2284
2285 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { 2285 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) {
2286 // SIMD value -> true. 2286 // SIMD value -> true.
2287 Label not_simd; 2287 Label not_simd;
2288 const Register scratch = scratch1(); 2288 const Register scratch = scratch1();
2289 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); 2289 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
2290 __ Branch(&not_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE)); 2290 __ Branch(&not_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE));
2291 __ Branch(instr->TrueLabel(chunk_), le, scratch, 2291 __ Branch(instr->TrueLabel(chunk_), le, scratch,
2292 Operand(LAST_SIMD_VALUE_TYPE)); 2292 Operand(LAST_SIMD_VALUE_TYPE));
2293 __ bind(&not_simd); 2293 __ bind(&not_simd);
2294 } 2294 }
2295 2295
2296 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { 2296 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) {
2297 // heap number -> false iff +0, -0, or NaN. 2297 // heap number -> false iff +0, -0, or NaN.
2298 DoubleRegister dbl_scratch = double_scratch0(); 2298 DoubleRegister dbl_scratch = double_scratch0();
2299 Label not_heap_number; 2299 Label not_heap_number;
2300 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); 2300 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex);
(...skipping 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after
6286 __ Push(at, ToRegister(instr->function())); 6286 __ Push(at, ToRegister(instr->function()));
6287 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6287 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6288 RecordSafepoint(Safepoint::kNoLazyDeopt); 6288 RecordSafepoint(Safepoint::kNoLazyDeopt);
6289 } 6289 }
6290 6290
6291 6291
6292 #undef __ 6292 #undef __
6293 6293
6294 } // namespace internal 6294 } // namespace internal
6295 } // namespace v8 6295 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698