OLD | NEW |
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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1820 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); | 1820 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); |
1821 return AssignEnvironment(DefineSameAsFirst(result)); | 1821 return AssignEnvironment(DefineSameAsFirst(result)); |
1822 } | 1822 } |
1823 | 1823 |
1824 | 1824 |
1825 LInstruction* LChunkBuilder::DoLoadKeyedSpecializedArrayElement( | 1825 LInstruction* LChunkBuilder::DoLoadKeyedSpecializedArrayElement( |
1826 HLoadKeyedSpecializedArrayElement* instr) { | 1826 HLoadKeyedSpecializedArrayElement* instr) { |
1827 // TODO(danno): Add support for other external array types. | 1827 // TODO(danno): Add support for other external array types. |
1828 if (instr->array_type() != kExternalPixelArray) { | 1828 if (instr->array_type() != kExternalPixelArray) { |
1829 Abort("unsupported load for external array type."); | 1829 Abort("unsupported load for external array type."); |
| 1830 return NULL; |
1830 } | 1831 } |
1831 | 1832 |
1832 ASSERT(instr->representation().IsInteger32()); | 1833 ASSERT(instr->representation().IsInteger32()); |
1833 ASSERT(instr->key()->representation().IsInteger32()); | 1834 ASSERT(instr->key()->representation().IsInteger32()); |
1834 LOperand* external_pointer = | 1835 LOperand* external_pointer = |
1835 UseRegisterAtStart(instr->external_pointer()); | 1836 UseRegisterAtStart(instr->external_pointer()); |
1836 LOperand* key = UseRegisterAtStart(instr->key()); | 1837 LOperand* key = UseRegisterAtStart(instr->key()); |
1837 LLoadKeyedSpecializedArrayElement* result = | 1838 LLoadKeyedSpecializedArrayElement* result = |
1838 new LLoadKeyedSpecializedArrayElement(external_pointer, | 1839 new LLoadKeyedSpecializedArrayElement(external_pointer, |
1839 key); | 1840 key); |
(...skipping 28 matching lines...) Expand all Loading... |
1868 | 1869 |
1869 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); | 1870 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); |
1870 } | 1871 } |
1871 | 1872 |
1872 | 1873 |
1873 LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( | 1874 LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( |
1874 HStoreKeyedSpecializedArrayElement* instr) { | 1875 HStoreKeyedSpecializedArrayElement* instr) { |
1875 // TODO(danno): Add support for other external array types. | 1876 // TODO(danno): Add support for other external array types. |
1876 if (instr->array_type() != kExternalPixelArray) { | 1877 if (instr->array_type() != kExternalPixelArray) { |
1877 Abort("unsupported store for external array type."); | 1878 Abort("unsupported store for external array type."); |
| 1879 return NULL; |
1878 } | 1880 } |
1879 | 1881 |
1880 ASSERT(instr->value()->representation().IsInteger32()); | 1882 ASSERT(instr->value()->representation().IsInteger32()); |
1881 ASSERT(instr->external_pointer()->representation().IsExternal()); | 1883 ASSERT(instr->external_pointer()->representation().IsExternal()); |
1882 ASSERT(instr->key()->representation().IsInteger32()); | 1884 ASSERT(instr->key()->representation().IsInteger32()); |
1883 | 1885 |
1884 LOperand* external_pointer = UseRegister(instr->external_pointer()); | 1886 LOperand* external_pointer = UseRegister(instr->external_pointer()); |
1885 LOperand* value = UseTempRegister(instr->value()); // changed by clamp. | 1887 LOperand* value = UseTempRegister(instr->value()); // changed by clamp. |
1886 LOperand* key = UseRegister(instr->key()); | 1888 LOperand* key = UseRegister(instr->key()); |
1887 | 1889 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 | 2097 |
2096 | 2098 |
2097 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2099 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2098 HEnvironment* outer = current_block_->last_environment()->outer(); | 2100 HEnvironment* outer = current_block_->last_environment()->outer(); |
2099 current_block_->UpdateEnvironment(outer); | 2101 current_block_->UpdateEnvironment(outer); |
2100 return NULL; | 2102 return NULL; |
2101 } | 2103 } |
2102 | 2104 |
2103 | 2105 |
2104 } } // namespace v8::internal | 2106 } } // namespace v8::internal |
OLD | NEW |