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

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

Issue 146213004: A64: Synchronize with r16849. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.h » ('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 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch( 1640 LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
1641 HCompareObjectEqAndBranch* instr) { 1641 HCompareObjectEqAndBranch* instr) {
1642 LOperand* left = UseRegisterAtStart(instr->left()); 1642 LOperand* left = UseRegisterAtStart(instr->left());
1643 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1643 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1644 return new(zone()) LCmpObjectEqAndBranch(left, right); 1644 return new(zone()) LCmpObjectEqAndBranch(left, right);
1645 } 1645 }
1646 1646
1647 1647
1648 LInstruction* LChunkBuilder::DoCompareHoleAndBranch( 1648 LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
1649 HCompareHoleAndBranch* instr) { 1649 HCompareHoleAndBranch* instr) {
1650 LOperand* object = UseRegisterAtStart(instr->object()); 1650 LOperand* value = UseRegisterAtStart(instr->value());
1651 return new(zone()) LCmpHoleAndBranch(object); 1651 return new(zone()) LCmpHoleAndBranch(value);
1652 } 1652 }
1653 1653
1654 1654
1655 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { 1655 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
1656 ASSERT(instr->value()->representation().IsTagged()); 1656 ASSERT(instr->value()->representation().IsTagged());
1657 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value())); 1657 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()));
1658 } 1658 }
1659 1659
1660 1660
1661 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { 1661 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); 1904 return AssignEnvironment(new(zone()) LCheckNonSmi(value));
1905 } 1905 }
1906 1906
1907 1907
1908 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1908 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1909 LOperand* value = UseRegisterAtStart(instr->value()); 1909 LOperand* value = UseRegisterAtStart(instr->value());
1910 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1910 return AssignEnvironment(new(zone()) LCheckSmi(value));
1911 } 1911 }
1912 1912
1913 1913
1914 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) {
1915 return new(zone()) LIsNumberAndBranch(
1916 UseRegisterOrConstantAtStart(instr->value()));
1917 }
1918
1919
1920 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1914 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1921 LOperand* value = UseRegisterAtStart(instr->value()); 1915 LOperand* value = UseRegisterAtStart(instr->value());
1922 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value); 1916 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value);
1923 return AssignEnvironment(result); 1917 return AssignEnvironment(result);
1924 } 1918 }
1925 1919
1926 1920
1927 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { 1921 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
1928 LOperand* value = UseRegisterAtStart(instr->value()); 1922 LOperand* value = UseRegisterAtStart(instr->value());
1929 return AssignEnvironment(new(zone()) LCheckValue(value)); 1923 return AssignEnvironment(new(zone()) LCheckValue(value));
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2068 } 2062 }
2069 2063
2070 2064
2071 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2065 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2072 HLoadFunctionPrototype* instr) { 2066 HLoadFunctionPrototype* instr) {
2073 return AssignEnvironment(DefineAsRegister( 2067 return AssignEnvironment(DefineAsRegister(
2074 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2068 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2075 } 2069 }
2076 2070
2077 2071
2072 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
2073 return DefineAsRegister(new(zone()) LLoadRoot);
2074 }
2075
2076
2078 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( 2077 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer(
2079 HLoadExternalArrayPointer* instr) { 2078 HLoadExternalArrayPointer* instr) {
2080 LOperand* input = UseRegisterAtStart(instr->value()); 2079 LOperand* input = UseRegisterAtStart(instr->value());
2081 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); 2080 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input));
2082 } 2081 }
2083 2082
2084 2083
2085 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { 2084 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) {
2086 ASSERT(instr->key()->representation().IsInteger32()); 2085 ASSERT(instr->key()->representation().IsInteger32());
2087 ElementsKind elements_kind = instr->elements_kind(); 2086 ElementsKind elements_kind = instr->elements_kind();
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2524 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2526 LOperand* object = UseRegister(instr->object()); 2525 LOperand* object = UseRegister(instr->object());
2527 LOperand* index = UseTempRegister(instr->index()); 2526 LOperand* index = UseTempRegister(instr->index());
2528 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2527 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2529 } 2528 }
2530 2529
2531 2530
2532 } } // namespace v8::internal 2531 } } // namespace v8::internal
2533 2532
2534 #endif // V8_TARGET_ARCH_X64 2533 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698