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

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

Issue 18763003: MIPS: Convert UnaryOpStub to a HydrogenCodeStub. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 5 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-mips.h ('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 // 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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 return NULL; 1912 return NULL;
1913 } 1913 }
1914 1914
1915 1915
1916 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1916 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1917 LOperand* value = UseRegisterAtStart(instr->value()); 1917 LOperand* value = UseRegisterAtStart(instr->value());
1918 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); 1918 return AssignEnvironment(new(zone()) LCheckNonSmi(value));
1919 } 1919 }
1920 1920
1921 1921
1922 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1923 LOperand* value = UseRegisterAtStart(instr->value());
1924 return AssignEnvironment(new(zone()) LCheckSmi(value));
1925 }
1926
1927
1928 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) {
1929 return new(zone())
1930 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value()));
1931 }
1932
1933
1922 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1934 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1923 LOperand* value = UseRegisterAtStart(instr->value()); 1935 LOperand* value = UseRegisterAtStart(instr->value());
1924 LInstruction* result = new(zone()) LCheckInstanceType(value); 1936 LInstruction* result = new(zone()) LCheckInstanceType(value);
1925 return AssignEnvironment(result); 1937 return AssignEnvironment(result);
1926 } 1938 }
1927 1939
1928 1940
1929 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1941 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1930 LUnallocated* temp1 = TempRegister(); 1942 LUnallocated* temp1 = TempRegister();
1931 LOperand* temp2 = TempRegister(); 1943 LOperand* temp2 = TempRegister();
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 2563
2552 2564
2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2554 LOperand* object = UseRegister(instr->object()); 2566 LOperand* object = UseRegister(instr->object());
2555 LOperand* index = UseRegister(instr->index()); 2567 LOperand* index = UseRegister(instr->index());
2556 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2568 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2557 } 2569 }
2558 2570
2559 2571
2560 } } // namespace v8::internal 2572 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698