| 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 ASSERT(ast_id != AstNode::kNoNumber); | 1008 ASSERT(ast_id != AstNode::kNoNumber); |
| 1009 int value_count = hydrogen_env->length(); | 1009 int value_count = hydrogen_env->length(); |
| 1010 LEnvironment* result = new LEnvironment(hydrogen_env->closure(), | 1010 LEnvironment* result = new LEnvironment(hydrogen_env->closure(), |
| 1011 ast_id, | 1011 ast_id, |
| 1012 hydrogen_env->parameter_count(), | 1012 hydrogen_env->parameter_count(), |
| 1013 argument_count_, | 1013 argument_count_, |
| 1014 value_count, | 1014 value_count, |
| 1015 outer); | 1015 outer); |
| 1016 int argument_index = 0; | 1016 int argument_index = 0; |
| 1017 for (int i = 0; i < value_count; ++i) { | 1017 for (int i = 0; i < value_count; ++i) { |
| 1018 if (hydrogen_env->is_special_index(i)) continue; |
| 1019 |
| 1018 HValue* value = hydrogen_env->values()->at(i); | 1020 HValue* value = hydrogen_env->values()->at(i); |
| 1019 LOperand* op = NULL; | 1021 LOperand* op = NULL; |
| 1020 if (value->IsArgumentsObject()) { | 1022 if (value->IsArgumentsObject()) { |
| 1021 op = NULL; | 1023 op = NULL; |
| 1022 } else if (value->IsPushArgument()) { | 1024 } else if (value->IsPushArgument()) { |
| 1023 op = new LArgument(argument_index++); | 1025 op = new LArgument(argument_index++); |
| 1024 } else { | 1026 } else { |
| 1025 op = UseAny(value); | 1027 op = UseAny(value); |
| 1026 } | 1028 } |
| 1027 result->AddValue(op, value->representation()); | 1029 result->AddValue(op, value->representation()); |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2144 | 2146 |
| 2145 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2147 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2146 LOperand* key = UseRegisterAtStart(instr->key()); | 2148 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2147 LOperand* object = UseRegisterAtStart(instr->object()); | 2149 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2148 LIn* result = new LIn(key, object); | 2150 LIn* result = new LIn(key, object); |
| 2149 return MarkAsCall(DefineFixed(result, r0), instr); | 2151 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2150 } | 2152 } |
| 2151 | 2153 |
| 2152 | 2154 |
| 2153 } } // namespace v8::internal | 2155 } } // namespace v8::internal |
| OLD | NEW |