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

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

Issue 5967008: ARM implementations of LoadElements, LoadKeyedFastElement, StoreNamedField, S... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 1918
1919 ASSERT(instr->object()->representation().IsTagged()); 1919 ASSERT(instr->object()->representation().IsTagged());
1920 ASSERT(instr->key()->representation().IsTagged()); 1920 ASSERT(instr->key()->representation().IsTagged());
1921 ASSERT(instr->value()->representation().IsTagged()); 1921 ASSERT(instr->value()->representation().IsTagged());
1922 1922
1923 return MarkAsCall(new LStoreKeyedGeneric(obj, key, val), instr); 1923 return MarkAsCall(new LStoreKeyedGeneric(obj, key, val), instr);
1924 } 1924 }
1925 1925
1926 1926
1927 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { 1927 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
1928 bool needs_write_barrier = !instr->value()->type().IsSmi(); 1928 bool needs_write_barrier = instr->NeedsWriteBarrier();
1929 1929
1930 LOperand* obj = needs_write_barrier 1930 LOperand* obj = needs_write_barrier
1931 ? UseTempRegister(instr->object()) 1931 ? UseTempRegister(instr->object())
1932 : UseRegisterAtStart(instr->object()); 1932 : UseRegisterAtStart(instr->object());
1933 1933
1934 LOperand* val = needs_write_barrier 1934 LOperand* val = needs_write_barrier
1935 ? UseTempRegister(instr->value()) 1935 ? UseTempRegister(instr->value())
1936 : UseRegister(instr->value()); 1936 : UseRegister(instr->value());
1937 1937
1938 // We only need a scratch register if we have a write barrier or we
1939 // have a store into the properties array (not in-object-property).
1940 LOperand* temp = (!instr->is_in_object() || needs_write_barrier)
1941 ? TempRegister() : NULL;
1942
1943 return new LStoreNamedField(obj, 1938 return new LStoreNamedField(obj,
1944 instr->name(), 1939 instr->name(),
1945 val, 1940 val,
1946 instr->is_in_object(), 1941 instr->is_in_object(),
1947 instr->offset(), 1942 instr->offset(),
1948 temp,
1949 needs_write_barrier, 1943 needs_write_barrier,
1950 instr->transition()); 1944 instr->transition());
1951 } 1945 }
1952 1946
1953 1947
1954 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { 1948 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) {
1955 LOperand* obj = UseFixed(instr->object(), r1); 1949 LOperand* obj = UseFixed(instr->object(), r1);
1956 LOperand* val = UseFixed(instr->value(), r0); 1950 LOperand* val = UseFixed(instr->value(), r0);
1957 1951
1958 LInstruction* result = new LStoreNamedGeneric(obj, instr->name(), val); 1952 LInstruction* result = new LStoreNamedGeneric(obj, instr->name(), val);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 void LPointerMap::PrintTo(StringStream* stream) const { 2101 void LPointerMap::PrintTo(StringStream* stream) const {
2108 stream->Add("{"); 2102 stream->Add("{");
2109 for (int i = 0; i < pointer_operands_.length(); ++i) { 2103 for (int i = 0; i < pointer_operands_.length(); ++i) {
2110 if (i != 0) stream->Add(";"); 2104 if (i != 0) stream->Add(";");
2111 pointer_operands_[i]->PrintTo(stream); 2105 pointer_operands_[i]->PrintTo(stream);
2112 } 2106 }
2113 stream->Add("} @%d", position()); 2107 stream->Add("} @%d", position());
2114 } 2108 }
2115 2109
2116 } } // namespace v8::internal 2110 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698