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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 2073018: Reverting r4703. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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/codegen-ia32.cc ('k') | src/ia32/ic-ia32.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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1002
1003 // We got a map in register eax. Get the enumeration cache from it. 1003 // We got a map in register eax. Get the enumeration cache from it.
1004 __ mov(ecx, FieldOperand(eax, Map::kInstanceDescriptorsOffset)); 1004 __ mov(ecx, FieldOperand(eax, Map::kInstanceDescriptorsOffset));
1005 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumerationIndexOffset)); 1005 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumerationIndexOffset));
1006 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset)); 1006 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset));
1007 1007
1008 // Setup the four remaining stack slots. 1008 // Setup the four remaining stack slots.
1009 __ push(eax); // Map. 1009 __ push(eax); // Map.
1010 __ push(edx); // Enumeration cache. 1010 __ push(edx); // Enumeration cache.
1011 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset)); 1011 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset));
1012 __ SmiTag(eax);
1012 __ push(eax); // Enumeration cache length (as smi). 1013 __ push(eax); // Enumeration cache length (as smi).
1013 __ push(Immediate(Smi::FromInt(0))); // Initial index. 1014 __ push(Immediate(Smi::FromInt(0))); // Initial index.
1014 __ jmp(&loop); 1015 __ jmp(&loop);
1015 1016
1016 // We got a fixed array in register eax. Iterate through that. 1017 // We got a fixed array in register eax. Iterate through that.
1017 __ bind(&fixed_array); 1018 __ bind(&fixed_array);
1018 __ push(Immediate(Smi::FromInt(0))); // Map (0) - force slow check. 1019 __ push(Immediate(Smi::FromInt(0))); // Map (0) - force slow check.
1019 __ push(eax); 1020 __ push(eax);
1020 __ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset)); 1021 __ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset));
1022 __ SmiTag(eax);
1021 __ push(eax); // Fixed array length (as smi). 1023 __ push(eax); // Fixed array length (as smi).
1022 __ push(Immediate(Smi::FromInt(0))); // Initial index. 1024 __ push(Immediate(Smi::FromInt(0))); // Initial index.
1023 1025
1024 // Generate code for doing the condition check. 1026 // Generate code for doing the condition check.
1025 __ bind(&loop); 1027 __ bind(&loop);
1026 __ mov(eax, Operand(esp, 0 * kPointerSize)); // Get the current index. 1028 __ mov(eax, Operand(esp, 0 * kPointerSize)); // Get the current index.
1027 __ cmp(eax, Operand(esp, 1 * kPointerSize)); // Compare to the array length. 1029 __ cmp(eax, Operand(esp, 1 * kPointerSize)); // Compare to the array length.
1028 __ j(above_equal, loop_statement.break_target()); 1030 __ j(above_equal, loop_statement.break_target());
1029 1031
1030 // Get the current entry of the array into register ebx. 1032 // Get the current entry of the array into register ebx.
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 // And return. 3238 // And return.
3237 __ ret(0); 3239 __ ret(0);
3238 } 3240 }
3239 3241
3240 3242
3241 #undef __ 3243 #undef __
3242 3244
3243 } } // namespace v8::internal 3245 } } // namespace v8::internal
3244 3246
3245 #endif // V8_TARGET_ARCH_IA32 3247 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698