Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The start environment for a hydrogen stub is initialized twice (fixed). Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, temp); 1947 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, temp);
1948 return AssignEnvironment(DefineFixed(result, eax)); 1948 return AssignEnvironment(DefineFixed(result, eax));
1949 } 1949 }
1950 } 1950 }
1951 1951
1952 1952
1953 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1953 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1954 LOperand* context = info()->IsStub() 1954 LOperand* context = info()->IsStub()
1955 ? UseFixed(instr->context(), esi) 1955 ? UseFixed(instr->context(), esi)
1956 : NULL; 1956 : NULL;
1957 return new(zone()) LReturn(UseFixed(instr->value(), eax), context); 1957 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
1958 return new(zone()) LReturn(UseFixed(instr->value(), eax), context,
1959 parameter_count);
1958 } 1960 }
1959 1961
1960 1962
1961 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { 1963 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) {
1962 Representation r = instr->representation(); 1964 Representation r = instr->representation();
1963 if (r.IsInteger32()) { 1965 if (r.IsInteger32()) {
1964 return DefineAsRegister(new(zone()) LConstantI); 1966 return DefineAsRegister(new(zone()) LConstantI);
1965 } else if (r.IsDouble()) { 1967 } else if (r.IsDouble()) {
1966 double value = instr->DoubleValue(); 1968 double value = instr->DoubleValue();
1967 LOperand* temp = (BitCast<uint64_t, double>(value) != 0) 1969 LOperand* temp = (BitCast<uint64_t, double>(value) != 0)
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2596 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2595 LOperand* object = UseRegister(instr->object()); 2597 LOperand* object = UseRegister(instr->object());
2596 LOperand* index = UseTempRegister(instr->index()); 2598 LOperand* index = UseTempRegister(instr->index());
2597 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2599 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2598 } 2600 }
2599 2601
2600 2602
2601 } } // namespace v8::internal 2603 } } // namespace v8::internal
2602 2604
2603 #endif // V8_TARGET_ARCH_IA32 2605 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698