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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 19256021: Merges ARM load/store type enums into one enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | « runtime/vm/disassembler_arm.cc ('k') | runtime/vm/intermediate_language_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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 __ subs(R8, R8, ShifterOperand(1)); 1030 __ subs(R8, R8, ShifterOperand(1));
1031 __ b(&null_args_loop, PL); 1031 __ b(&null_args_loop, PL);
1032 } 1032 }
1033 1033
1034 1034
1035 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { 1035 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) {
1036 // LR: return address. 1036 // LR: return address.
1037 // SP: receiver. 1037 // SP: receiver.
1038 // Sequence node has one return node, its input is load field node. 1038 // Sequence node has one return node, its input is load field node.
1039 __ ldr(R0, Address(SP, 0 * kWordSize)); 1039 __ ldr(R0, Address(SP, 0 * kWordSize));
1040 __ LoadFromOffset(kLoadWord, R0, R0, offset - kHeapObjectTag); 1040 __ LoadFromOffset(kWord, R0, R0, offset - kHeapObjectTag);
1041 __ Ret(); 1041 __ Ret();
1042 } 1042 }
1043 1043
1044 1044
1045 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { 1045 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) {
1046 // LR: return address. 1046 // LR: return address.
1047 // SP+1: receiver. 1047 // SP+1: receiver.
1048 // SP+0: value. 1048 // SP+0: value.
1049 // Sequence node has one store node and one return NULL node. 1049 // Sequence node has one store node and one return NULL node.
1050 __ ldr(R0, Address(SP, 1 * kWordSize)); // Receiver. 1050 __ ldr(R0, Address(SP, 1 * kWordSize)); // Receiver.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 intptr_t token_pos, 1327 intptr_t token_pos,
1328 LocationSummary* locs) { 1328 LocationSummary* locs) {
1329 MegamorphicCacheTable* table = Isolate::Current()->megamorphic_cache_table(); 1329 MegamorphicCacheTable* table = Isolate::Current()->megamorphic_cache_table();
1330 const String& name = String::Handle(ic_data.target_name()); 1330 const String& name = String::Handle(ic_data.target_name());
1331 const Array& arguments_descriptor = 1331 const Array& arguments_descriptor =
1332 Array::ZoneHandle(ic_data.arguments_descriptor()); 1332 Array::ZoneHandle(ic_data.arguments_descriptor());
1333 ASSERT(!arguments_descriptor.IsNull()); 1333 ASSERT(!arguments_descriptor.IsNull());
1334 const MegamorphicCache& cache = 1334 const MegamorphicCache& cache =
1335 MegamorphicCache::ZoneHandle(table->Lookup(name, arguments_descriptor)); 1335 MegamorphicCache::ZoneHandle(table->Lookup(name, arguments_descriptor));
1336 Label not_smi, load_cache; 1336 Label not_smi, load_cache;
1337 __ LoadFromOffset(kLoadWord, R0, SP, (argument_count - 1) * kWordSize); 1337 __ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize);
1338 __ tst(R0, ShifterOperand(kSmiTagMask)); 1338 __ tst(R0, ShifterOperand(kSmiTagMask));
1339 __ b(&not_smi, NE); 1339 __ b(&not_smi, NE);
1340 __ mov(R0, ShifterOperand(Smi::RawValue(kSmiCid))); 1340 __ mov(R0, ShifterOperand(Smi::RawValue(kSmiCid)));
1341 __ b(&load_cache); 1341 __ b(&load_cache);
1342 1342
1343 __ Bind(&not_smi); 1343 __ Bind(&not_smi);
1344 __ LoadClassId(R0, R0); 1344 __ LoadClassId(R0, R0);
1345 __ SmiTag(R0); 1345 __ SmiTag(R0);
1346 1346
1347 // R0: class ID of the receiver (smi). 1347 // R0: class ID of the receiver (smi).
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 DRegister dreg = EvenDRegisterOf(reg); 1879 DRegister dreg = EvenDRegisterOf(reg);
1880 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1880 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1881 } 1881 }
1882 1882
1883 1883
1884 #undef __ 1884 #undef __
1885 1885
1886 } // namespace dart 1886 } // namespace dart
1887 1887
1888 #endif // defined TARGET_ARCH_ARM 1888 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698