| 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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 | 873 |
| 874 HValue* value = hydrogen_env->values()->at(i); | 874 HValue* value = hydrogen_env->values()->at(i); |
| 875 LOperand* op = NULL; | 875 LOperand* op = NULL; |
| 876 if (value->IsArgumentsObject()) { | 876 if (value->IsArgumentsObject()) { |
| 877 op = NULL; | 877 op = NULL; |
| 878 } else if (value->IsPushArgument()) { | 878 } else if (value->IsPushArgument()) { |
| 879 op = new(zone()) LArgument(argument_index++); | 879 op = new(zone()) LArgument(argument_index++); |
| 880 } else { | 880 } else { |
| 881 op = UseAny(value); | 881 op = UseAny(value); |
| 882 } | 882 } |
| 883 result->AddValue(op, value->representation()); | 883 result->AddValue(op, |
| 884 value->representation(), |
| 885 value->CheckFlag(HInstruction::kUint32)); |
| 884 } | 886 } |
| 885 | 887 |
| 886 if (hydrogen_env->frame_type() == JS_FUNCTION) { | 888 if (hydrogen_env->frame_type() == JS_FUNCTION) { |
| 887 *argument_index_accumulator = argument_index; | 889 *argument_index_accumulator = argument_index; |
| 888 } | 890 } |
| 889 | 891 |
| 890 return result; | 892 return result; |
| 891 } | 893 } |
| 892 | 894 |
| 893 | 895 |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 | 2241 |
| 2240 | 2242 |
| 2241 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2243 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2242 LOperand* object = UseRegister(instr->object()); | 2244 LOperand* object = UseRegister(instr->object()); |
| 2243 LOperand* index = UseRegister(instr->index()); | 2245 LOperand* index = UseRegister(instr->index()); |
| 2244 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2246 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2245 } | 2247 } |
| 2246 | 2248 |
| 2247 | 2249 |
| 2248 } } // namespace v8::internal | 2250 } } // namespace v8::internal |
| OLD | NEW |