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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 ASSERT(ast_id != AstNode::kNoNumber || | 984 ASSERT(ast_id != AstNode::kNoNumber || |
985 hydrogen_env->frame_type() != JS_FUNCTION); | 985 hydrogen_env->frame_type() != JS_FUNCTION); |
986 int value_count = hydrogen_env->length(); | 986 int value_count = hydrogen_env->length(); |
987 LEnvironment* result = | 987 LEnvironment* result = |
988 new(zone()) LEnvironment(hydrogen_env->closure(), | 988 new(zone()) LEnvironment(hydrogen_env->closure(), |
989 hydrogen_env->frame_type(), | 989 hydrogen_env->frame_type(), |
990 ast_id, | 990 ast_id, |
991 hydrogen_env->parameter_count(), | 991 hydrogen_env->parameter_count(), |
992 argument_count_, | 992 argument_count_, |
993 value_count, | 993 value_count, |
994 outer); | 994 outer, |
| 995 zone()); |
995 int argument_index = *argument_index_accumulator; | 996 int argument_index = *argument_index_accumulator; |
996 for (int i = 0; i < value_count; ++i) { | 997 for (int i = 0; i < value_count; ++i) { |
997 if (hydrogen_env->is_special_index(i)) continue; | 998 if (hydrogen_env->is_special_index(i)) continue; |
998 | 999 |
999 HValue* value = hydrogen_env->values()->at(i); | 1000 HValue* value = hydrogen_env->values()->at(i); |
1000 LOperand* op = NULL; | 1001 LOperand* op = NULL; |
1001 if (value->IsArgumentsObject()) { | 1002 if (value->IsArgumentsObject()) { |
1002 op = NULL; | 1003 op = NULL; |
1003 } else if (value->IsPushArgument()) { | 1004 } else if (value->IsPushArgument()) { |
1004 op = new(zone()) LArgument(argument_index++); | 1005 op = new(zone()) LArgument(argument_index++); |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2438 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2438 LOperand* object = UseRegister(instr->object()); | 2439 LOperand* object = UseRegister(instr->object()); |
2439 LOperand* index = UseTempRegister(instr->index()); | 2440 LOperand* index = UseTempRegister(instr->index()); |
2440 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2441 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2441 } | 2442 } |
2442 | 2443 |
2443 | 2444 |
2444 } } // namespace v8::internal | 2445 } } // namespace v8::internal |
2445 | 2446 |
2446 #endif // V8_TARGET_ARCH_IA32 | 2447 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |