Chromium Code Reviews| 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 (i >= hydrogen_env->parameter_count() && | |
|
Kevin Millikin (Chromium)
2011/05/06 12:29:45
if (hydrogen_env->is_special_index(i)) continue;
| |
| 1019 i < hydrogen_env->parameter_count() + hydrogen_env->specials_count()) { | |
| 1020 continue; | |
| 1021 } | |
| 1018 HValue* value = hydrogen_env->values()->at(i); | 1022 HValue* value = hydrogen_env->values()->at(i); |
| 1019 LOperand* op = NULL; | 1023 LOperand* op = NULL; |
| 1020 if (value->IsArgumentsObject()) { | 1024 if (value->IsArgumentsObject()) { |
| 1021 op = NULL; | 1025 op = NULL; |
| 1022 } else if (value->IsPushArgument()) { | 1026 } else if (value->IsPushArgument()) { |
| 1023 op = new LArgument(argument_index++); | 1027 op = new LArgument(argument_index++); |
| 1024 } else { | 1028 } else { |
| 1025 op = UseAny(value); | 1029 op = UseAny(value); |
| 1026 } | 1030 } |
| 1027 result->AddValue(op, value->representation()); | 1031 result->AddValue(op, value->representation()); |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2144 | 2148 |
| 2145 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2149 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2146 LOperand* key = UseRegisterAtStart(instr->key()); | 2150 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2147 LOperand* object = UseRegisterAtStart(instr->object()); | 2151 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2148 LIn* result = new LIn(key, object); | 2152 LIn* result = new LIn(key, object); |
| 2149 return MarkAsCall(DefineFixed(result, r0), instr); | 2153 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2150 } | 2154 } |
| 2151 | 2155 |
| 2152 | 2156 |
| 2153 } } // namespace v8::internal | 2157 } } // namespace v8::internal |
| OLD | NEW |