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

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

Issue 6664001: [Isolates] Merge (7083,7111] from bleeding_edge. (Closed)
Patch Set: Created 9 years, 9 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 switch (op) { 1225 switch (op) {
1226 case kMathAbs: 1226 case kMathAbs:
1227 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1227 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1228 case kMathFloor: 1228 case kMathFloor:
1229 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1229 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1230 case kMathSqrt: 1230 case kMathSqrt:
1231 return DefineSameAsFirst(result); 1231 return DefineSameAsFirst(result);
1232 case kMathRound: 1232 case kMathRound:
1233 return AssignEnvironment(DefineAsRegister(result)); 1233 return AssignEnvironment(DefineAsRegister(result));
1234 case kMathPowHalf: 1234 case kMathPowHalf:
1235 Abort("MathPowHalf LUnaryMathOperation not implemented"); 1235 return DefineSameAsFirst(result);
1236 return NULL;
1237 default: 1236 default:
1238 UNREACHABLE(); 1237 UNREACHABLE();
1239 return NULL; 1238 return NULL;
1240 } 1239 }
1241 } 1240 }
1242 } 1241 }
1243 1242
1244 1243
1245 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { 1244 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) {
1246 ASSERT(instr->key()->representation().IsTagged()); 1245 ASSERT(instr->key()->representation().IsTagged());
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 return DefineSameAsFirst(new LClassOfTest(value)); 1542 return DefineSameAsFirst(new LClassOfTest(value));
1544 } 1543 }
1545 1544
1546 1545
1547 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { 1546 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) {
1548 LOperand* array = UseRegisterAtStart(instr->value()); 1547 LOperand* array = UseRegisterAtStart(instr->value());
1549 return DefineAsRegister(new LJSArrayLength(array)); 1548 return DefineAsRegister(new LJSArrayLength(array));
1550 } 1549 }
1551 1550
1552 1551
1553 LInstruction* LChunkBuilder::DoPixelArrayLength(HPixelArrayLength* instr) { 1552 LInstruction* LChunkBuilder::DoExternalArrayLength(
1553 HExternalArrayLength* instr) {
1554 LOperand* array = UseRegisterAtStart(instr->value()); 1554 LOperand* array = UseRegisterAtStart(instr->value());
1555 return DefineAsRegister(new LPixelArrayLength(array)); 1555 return DefineAsRegister(new LExternalArrayLength(array));
1556 } 1556 }
1557 1557
1558 1558
1559 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { 1559 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) {
1560 LOperand* array = UseRegisterAtStart(instr->value()); 1560 LOperand* array = UseRegisterAtStart(instr->value());
1561 return DefineAsRegister(new LFixedArrayLength(array)); 1561 return DefineAsRegister(new LFixedArrayLength(array));
1562 } 1562 }
1563 1563
1564 1564
1565 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { 1565 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 new LLoadFunctionPrototype(UseRegister(instr->function())))); 1769 new LLoadFunctionPrototype(UseRegister(instr->function()))));
1770 } 1770 }
1771 1771
1772 1772
1773 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { 1773 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) {
1774 LOperand* input = UseRegisterAtStart(instr->value()); 1774 LOperand* input = UseRegisterAtStart(instr->value());
1775 return DefineAsRegister(new LLoadElements(input)); 1775 return DefineAsRegister(new LLoadElements(input));
1776 } 1776 }
1777 1777
1778 1778
1779 LInstruction* LChunkBuilder::DoLoadPixelArrayExternalPointer( 1779 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer(
1780 HLoadPixelArrayExternalPointer* instr) { 1780 HLoadExternalArrayPointer* instr) {
1781 LOperand* input = UseRegisterAtStart(instr->value()); 1781 LOperand* input = UseRegisterAtStart(instr->value());
1782 return DefineAsRegister(new LLoadPixelArrayExternalPointer(input)); 1782 return DefineAsRegister(new LLoadExternalArrayPointer(input));
1783 } 1783 }
1784 1784
1785 1785
1786 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( 1786 LInstruction* LChunkBuilder::DoLoadKeyedFastElement(
1787 HLoadKeyedFastElement* instr) { 1787 HLoadKeyedFastElement* instr) {
1788 ASSERT(instr->representation().IsTagged()); 1788 ASSERT(instr->representation().IsTagged());
1789 ASSERT(instr->key()->representation().IsInteger32()); 1789 ASSERT(instr->key()->representation().IsInteger32());
1790 LOperand* obj = UseRegisterAtStart(instr->object()); 1790 LOperand* obj = UseRegisterAtStart(instr->object());
1791 LOperand* key = UseRegisterAtStart(instr->key()); 1791 LOperand* key = UseRegisterAtStart(instr->key());
1792 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); 1792 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 LOperand* key = needs_write_barrier 1831 LOperand* key = needs_write_barrier
1832 ? UseTempRegister(instr->key()) 1832 ? UseTempRegister(instr->key())
1833 : UseRegisterOrConstantAtStart(instr->key()); 1833 : UseRegisterOrConstantAtStart(instr->key());
1834 1834
1835 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); 1835 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val));
1836 } 1836 }
1837 1837
1838 1838
1839 LInstruction* LChunkBuilder::DoStorePixelArrayElement( 1839 LInstruction* LChunkBuilder::DoStorePixelArrayElement(
1840 HStorePixelArrayElement* instr) { 1840 HStorePixelArrayElement* instr) {
1841 Abort("DoStorePixelArrayElement not implemented"); 1841 ASSERT(instr->value()->representation().IsInteger32());
1842 return NULL; 1842 ASSERT(instr->external_pointer()->representation().IsExternal());
1843 ASSERT(instr->key()->representation().IsInteger32());
1844
1845 LOperand* external_pointer = UseRegister(instr->external_pointer());
1846 LOperand* value = UseTempRegister(instr->value()); // changed by clamp.
1847 LOperand* key = UseRegister(instr->key());
1848
1849 return new LStorePixelArrayElement(external_pointer, key, value);
1843 } 1850 }
1844 1851
1845 1852
1846 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { 1853 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) {
1847 LOperand* obj = UseFixed(instr->object(), r2); 1854 LOperand* obj = UseFixed(instr->object(), r2);
1848 LOperand* key = UseFixed(instr->key(), r1); 1855 LOperand* key = UseFixed(instr->key(), r1);
1849 LOperand* val = UseFixed(instr->value(), r0); 1856 LOperand* val = UseFixed(instr->value(), r0);
1850 1857
1851 ASSERT(instr->object()->representation().IsTagged()); 1858 ASSERT(instr->object()->representation().IsTagged());
1852 ASSERT(instr->key()->representation().IsTagged()); 1859 ASSERT(instr->key()->representation().IsTagged());
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 2040
2034 2041
2035 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2042 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2036 HEnvironment* outer = current_block_->last_environment()->outer(); 2043 HEnvironment* outer = current_block_->last_environment()->outer();
2037 current_block_->UpdateEnvironment(outer); 2044 current_block_->UpdateEnvironment(outer);
2038 return NULL; 2045 return NULL;
2039 } 2046 }
2040 2047
2041 2048
2042 } } // namespace v8::internal 2049 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698