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

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

Issue 14113011: MIPS: Remove soft-float support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/lithium-gap-resolver-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. 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 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 } 2043 }
2044 result = new(zone()) LLoadKeyed(obj, key); 2044 result = new(zone()) LLoadKeyed(obj, key);
2045 } else { 2045 } else {
2046 ASSERT( 2046 ASSERT(
2047 (instr->representation().IsInteger32() && 2047 (instr->representation().IsInteger32() &&
2048 (elements_kind != EXTERNAL_FLOAT_ELEMENTS) && 2048 (elements_kind != EXTERNAL_FLOAT_ELEMENTS) &&
2049 (elements_kind != EXTERNAL_DOUBLE_ELEMENTS)) || 2049 (elements_kind != EXTERNAL_DOUBLE_ELEMENTS)) ||
2050 (instr->representation().IsDouble() && 2050 (instr->representation().IsDouble() &&
2051 ((elements_kind == EXTERNAL_FLOAT_ELEMENTS) || 2051 ((elements_kind == EXTERNAL_FLOAT_ELEMENTS) ||
2052 (elements_kind == EXTERNAL_DOUBLE_ELEMENTS)))); 2052 (elements_kind == EXTERNAL_DOUBLE_ELEMENTS))));
2053 // float->double conversion on soft float requires an extra scratch 2053 LOperand* external_pointer = UseRegister(instr->elements());
2054 // register. For convenience, just mark the elements register as "UseTemp"
2055 // so that it can be used as a temp during the float->double conversion
2056 // after it's no longer needed after the float load.
2057 bool needs_temp =
2058 !CpuFeatures::IsSupported(FPU) &&
2059 (elements_kind == EXTERNAL_FLOAT_ELEMENTS);
2060 LOperand* external_pointer = needs_temp
2061 ? UseTempRegister(instr->elements())
2062 : UseRegister(instr->elements());
2063 result = new(zone()) LLoadKeyed(external_pointer, key); 2054 result = new(zone()) LLoadKeyed(external_pointer, key);
2064 } 2055 }
2065 2056
2066 DefineAsRegister(result); 2057 DefineAsRegister(result);
2067 // An unsigned int array load might overflow and cause a deopt, make sure it 2058 // An unsigned int array load might overflow and cause a deopt, make sure it
2068 // has an environment. 2059 // has an environment.
2069 bool can_deoptimize = instr->RequiresHoleCheck() || 2060 bool can_deoptimize = instr->RequiresHoleCheck() ||
2070 (elements_kind == EXTERNAL_UNSIGNED_INT_ELEMENTS); 2061 (elements_kind == EXTERNAL_UNSIGNED_INT_ELEMENTS);
2071 return can_deoptimize ? AssignEnvironment(result) : result; 2062 return can_deoptimize ? AssignEnvironment(result) : result;
2072 } 2063 }
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 2469
2479 2470
2480 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2471 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2481 LOperand* object = UseRegister(instr->object()); 2472 LOperand* object = UseRegister(instr->object());
2482 LOperand* index = UseRegister(instr->index()); 2473 LOperand* index = UseRegister(instr->index());
2483 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2474 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2484 } 2475 }
2485 2476
2486 2477
2487 } } // namespace v8::internal 2478 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-gap-resolver-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698