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

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

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 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/x64/deoptimizer-x64.cc ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 __ CompareRoot(FieldOperand(rax, HeapObject::kMapOffset), 960 __ CompareRoot(FieldOperand(rax, HeapObject::kMapOffset),
961 Heap::kMetaMapRootIndex); 961 Heap::kMetaMapRootIndex);
962 __ j(not_equal, &fixed_array, Label::kNear); 962 __ j(not_equal, &fixed_array, Label::kNear);
963 963
964 // We got a map in register rax. Get the enumeration cache from it. 964 // We got a map in register rax. Get the enumeration cache from it.
965 __ bind(&use_cache); 965 __ bind(&use_cache);
966 __ LoadInstanceDescriptors(rax, rcx); 966 __ LoadInstanceDescriptors(rax, rcx);
967 __ movq(rcx, FieldOperand(rcx, DescriptorArray::kEnumerationIndexOffset)); 967 __ movq(rcx, FieldOperand(rcx, DescriptorArray::kEnumerationIndexOffset));
968 __ movq(rdx, FieldOperand(rcx, DescriptorArray::kEnumCacheBridgeCacheOffset)); 968 __ movq(rdx, FieldOperand(rcx, DescriptorArray::kEnumCacheBridgeCacheOffset));
969 969
970 // Setup the four remaining stack slots. 970 // Set up the four remaining stack slots.
971 __ push(rax); // Map. 971 __ push(rax); // Map.
972 __ push(rdx); // Enumeration cache. 972 __ push(rdx); // Enumeration cache.
973 __ movq(rax, FieldOperand(rdx, FixedArray::kLengthOffset)); 973 __ movq(rax, FieldOperand(rdx, FixedArray::kLengthOffset));
974 __ push(rax); // Enumeration cache length (as smi). 974 __ push(rax); // Enumeration cache length (as smi).
975 __ Push(Smi::FromInt(0)); // Initial index. 975 __ Push(Smi::FromInt(0)); // Initial index.
976 __ jmp(&loop); 976 __ jmp(&loop);
977 977
978 // We got a fixed array in register rax. Iterate through that. 978 // We got a fixed array in register rax. Iterate through that.
979 Label non_proxy; 979 Label non_proxy;
980 __ bind(&fixed_array); 980 __ bind(&fixed_array);
(...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after
4346 *context_length = 0; 4346 *context_length = 0;
4347 return previous_; 4347 return previous_;
4348 } 4348 }
4349 4349
4350 4350
4351 #undef __ 4351 #undef __
4352 4352
4353 } } // namespace v8::internal 4353 } } // namespace v8::internal
4354 4354
4355 #endif // V8_TARGET_ARCH_X64 4355 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698