| 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 ASSERT(ast_id != AstNode::kNoNumber); | 1003 ASSERT(ast_id != AstNode::kNoNumber); |
| 1004 int value_count = hydrogen_env->length(); | 1004 int value_count = hydrogen_env->length(); |
| 1005 LEnvironment* result = new LEnvironment(hydrogen_env->closure(), | 1005 LEnvironment* result = new LEnvironment(hydrogen_env->closure(), |
| 1006 ast_id, | 1006 ast_id, |
| 1007 hydrogen_env->parameter_count(), | 1007 hydrogen_env->parameter_count(), |
| 1008 argument_count_, | 1008 argument_count_, |
| 1009 value_count, | 1009 value_count, |
| 1010 outer); | 1010 outer); |
| 1011 int argument_index = 0; | 1011 int argument_index = 0; |
| 1012 for (int i = 0; i < value_count; ++i) { | 1012 for (int i = 0; i < value_count; ++i) { |
| 1013 if (hydrogen_env->is_special_index(i)) continue; |
| 1014 |
| 1013 HValue* value = hydrogen_env->values()->at(i); | 1015 HValue* value = hydrogen_env->values()->at(i); |
| 1014 LOperand* op = NULL; | 1016 LOperand* op = NULL; |
| 1015 if (value->IsArgumentsObject()) { | 1017 if (value->IsArgumentsObject()) { |
| 1016 op = NULL; | 1018 op = NULL; |
| 1017 } else if (value->IsPushArgument()) { | 1019 } else if (value->IsPushArgument()) { |
| 1018 op = new LArgument(argument_index++); | 1020 op = new LArgument(argument_index++); |
| 1019 } else { | 1021 } else { |
| 1020 op = UseAny(value); | 1022 op = UseAny(value); |
| 1021 } | 1023 } |
| 1022 result->AddValue(op, value->representation()); | 1024 result->AddValue(op, value->representation()); |
| (...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2209 LOperand* key = UseOrConstantAtStart(instr->key()); | 2211 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2210 LOperand* object = UseOrConstantAtStart(instr->object()); | 2212 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2211 LIn* result = new LIn(key, object); | 2213 LIn* result = new LIn(key, object); |
| 2212 return MarkAsCall(DefineFixed(result, eax), instr); | 2214 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2213 } | 2215 } |
| 2214 | 2216 |
| 2215 | 2217 |
| 2216 } } // namespace v8::internal | 2218 } } // namespace v8::internal |
| 2217 | 2219 |
| 2218 #endif // V8_TARGET_ARCH_IA32 | 2220 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |