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

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

Issue 16337005: Deprecate FACTORY helper macro. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/code-stubs-x64.cc ('k') | test/cctest/test-alloc.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 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 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2927 __ lea(rcx, 2927 __ lea(rcx,
2928 Operand( 2928 Operand(
2929 rbx, index.reg, index.scale, DescriptorArray::kFirstOffset)); 2929 rbx, index.reg, index.scale, DescriptorArray::kFirstOffset));
2930 // Calculate location of the first key name. 2930 // Calculate location of the first key name.
2931 __ addq(rbx, Immediate(DescriptorArray::kFirstOffset)); 2931 __ addq(rbx, Immediate(DescriptorArray::kFirstOffset));
2932 // Loop through all the keys in the descriptor array. If one of these is the 2932 // Loop through all the keys in the descriptor array. If one of these is the
2933 // internalized string "valueOf" the result is false. 2933 // internalized string "valueOf" the result is false.
2934 __ jmp(&entry); 2934 __ jmp(&entry);
2935 __ bind(&loop); 2935 __ bind(&loop);
2936 __ movq(rdx, FieldOperand(rbx, 0)); 2936 __ movq(rdx, FieldOperand(rbx, 0));
2937 __ Cmp(rdx, FACTORY->value_of_string()); 2937 __ Cmp(rdx, isolate()->factory()->value_of_string());
2938 __ j(equal, if_false); 2938 __ j(equal, if_false);
2939 __ addq(rbx, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); 2939 __ addq(rbx, Immediate(DescriptorArray::kDescriptorSize * kPointerSize));
2940 __ bind(&entry); 2940 __ bind(&entry);
2941 __ cmpq(rbx, rcx); 2941 __ cmpq(rbx, rcx);
2942 __ j(not_equal, &loop); 2942 __ j(not_equal, &loop);
2943 2943
2944 __ bind(&done); 2944 __ bind(&done);
2945 // Reload map as register rbx was used as temporary above. 2945 // Reload map as register rbx was used as temporary above.
2946 __ movq(rbx, FieldOperand(rax, HeapObject::kMapOffset)); 2946 __ movq(rbx, FieldOperand(rax, HeapObject::kMapOffset));
2947 2947
(...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after
4859 *context_length = 0; 4859 *context_length = 0;
4860 return previous_; 4860 return previous_;
4861 } 4861 }
4862 4862
4863 4863
4864 #undef __ 4864 #undef __
4865 4865
4866 } } // namespace v8::internal 4866 } } // namespace v8::internal
4867 4867
4868 #endif // V8_TARGET_ARCH_X64 4868 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/cctest/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698