| OLD | NEW |
| 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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2116 (instr->representation().IsDouble() && | 2116 (instr->representation().IsDouble() && |
| 2117 IsDoubleOrFloatElementsKind(instr->elements_kind()))); | 2117 IsDoubleOrFloatElementsKind(instr->elements_kind()))); |
| 2118 LOperand* backing_store = UseRegister(instr->elements()); | 2118 LOperand* backing_store = UseRegister(instr->elements()); |
| 2119 result = new(zone()) LLoadKeyed(backing_store, key); | 2119 result = new(zone()) LLoadKeyed(backing_store, key); |
| 2120 } | 2120 } |
| 2121 | 2121 |
| 2122 DefineAsRegister(result); | 2122 DefineAsRegister(result); |
| 2123 // An unsigned int array load might overflow and cause a deopt, make sure it | 2123 // An unsigned int array load might overflow and cause a deopt, make sure it |
| 2124 // has an environment. | 2124 // has an environment. |
| 2125 bool can_deoptimize = instr->RequiresHoleCheck() || | 2125 bool can_deoptimize = instr->RequiresHoleCheck() || |
| 2126 elements_kind == EXTERNAL_UNSIGNED_INT_ELEMENTS || | 2126 elements_kind == EXTERNAL_UINT32_ELEMENTS || |
| 2127 elements_kind == UINT32_ELEMENTS; | 2127 elements_kind == UINT32_ELEMENTS; |
| 2128 return can_deoptimize ? AssignEnvironment(result) : result; | 2128 return can_deoptimize ? AssignEnvironment(result) : result; |
| 2129 } | 2129 } |
| 2130 | 2130 |
| 2131 | 2131 |
| 2132 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { | 2132 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
| 2133 LOperand* context = UseFixed(instr->context(), cp); | 2133 LOperand* context = UseFixed(instr->context(), cp); |
| 2134 LOperand* object = UseFixed(instr->object(), r1); | 2134 LOperand* object = UseFixed(instr->object(), r1); |
| 2135 LOperand* key = UseFixed(instr->key(), r0); | 2135 LOperand* key = UseFixed(instr->key(), r0); |
| 2136 | 2136 |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2529 } | 2529 } |
| 2530 | 2530 |
| 2531 | 2531 |
| 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2533 LOperand* object = UseRegister(instr->object()); | 2533 LOperand* object = UseRegister(instr->object()); |
| 2534 LOperand* index = UseRegister(instr->index()); | 2534 LOperand* index = UseRegister(instr->index()); |
| 2535 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2535 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2536 } | 2536 } |
| 2537 | 2537 |
| 2538 } } // namespace v8::internal | 2538 } } // namespace v8::internal |
| OLD | NEW |