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

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

Issue 231013002: Introduce LoadSharedFunctionInfoSpecialField for x64 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/builtins-x64.cc ('k') | src/x64/macro-assembler-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 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 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 2162
2163 // Load suspended function and context. 2163 // Load suspended function and context.
2164 __ movp(rsi, FieldOperand(rbx, JSGeneratorObject::kContextOffset)); 2164 __ movp(rsi, FieldOperand(rbx, JSGeneratorObject::kContextOffset));
2165 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset)); 2165 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset));
2166 2166
2167 // Push receiver. 2167 // Push receiver.
2168 __ Push(FieldOperand(rbx, JSGeneratorObject::kReceiverOffset)); 2168 __ Push(FieldOperand(rbx, JSGeneratorObject::kReceiverOffset));
2169 2169
2170 // Push holes for arguments to generator function. 2170 // Push holes for arguments to generator function.
2171 __ movp(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); 2171 __ movp(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
2172 __ movsxlq(rdx, 2172 __ LoadSharedFunctionInfoSpecialField(rdx, rdx,
2173 FieldOperand(rdx, 2173 SharedFunctionInfo::kFormalParameterCountOffset);
2174 SharedFunctionInfo::kFormalParameterCountOffset));
2175 __ LoadRoot(rcx, Heap::kTheHoleValueRootIndex); 2174 __ LoadRoot(rcx, Heap::kTheHoleValueRootIndex);
2176 Label push_argument_holes, push_frame; 2175 Label push_argument_holes, push_frame;
2177 __ bind(&push_argument_holes); 2176 __ bind(&push_argument_holes);
2178 __ subp(rdx, Immediate(1)); 2177 __ subp(rdx, Immediate(1));
2179 __ j(carry, &push_frame); 2178 __ j(carry, &push_frame);
2180 __ Push(rcx); 2179 __ Push(rcx);
2181 __ jmp(&push_argument_holes); 2180 __ jmp(&push_argument_holes);
2182 2181
2183 // Enter a new JavaScript frame, and initialize its slots as they were when 2182 // Enter a new JavaScript frame, and initialize its slots as they were when
2184 // the generator was suspended. 2183 // the generator was suspended.
(...skipping 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after
4917 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4916 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4918 Assembler::target_address_at(call_target_address, 4917 Assembler::target_address_at(call_target_address,
4919 unoptimized_code)); 4918 unoptimized_code));
4920 return OSR_AFTER_STACK_CHECK; 4919 return OSR_AFTER_STACK_CHECK;
4921 } 4920 }
4922 4921
4923 4922
4924 } } // namespace v8::internal 4923 } } // namespace v8::internal
4925 4924
4926 #endif // V8_TARGET_ARCH_X64 4925 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698