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

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

Issue 7050039: Revert 8122 (stub call asserts) while test failures are investigated. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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/deoptimizer-x64.cc ('k') | src/x64/ic-x64.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 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Label ok; 139 Label ok;
140 __ testq(rcx, rcx); 140 __ testq(rcx, rcx);
141 __ j(zero, &ok, Label::kNear); 141 __ j(zero, &ok, Label::kNear);
142 // +1 for return address. 142 // +1 for return address.
143 int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize; 143 int receiver_offset = (scope()->num_parameters() + 1) * kPointerSize;
144 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); 144 __ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex);
145 __ movq(Operand(rsp, receiver_offset), kScratchRegister); 145 __ movq(Operand(rsp, receiver_offset), kScratchRegister);
146 __ bind(&ok); 146 __ bind(&ok);
147 } 147 }
148 148
149 // Open a frame scope to indicate that there is a frame on the stack. The
150 // MANUAL indicates that the scope shouldn't actually generate code to set up
151 // the frame (that is done below).
152 FrameScope frame_scope(masm_, StackFrame::MANUAL);
153
154 __ push(rbp); // Caller's frame pointer. 149 __ push(rbp); // Caller's frame pointer.
155 __ movq(rbp, rsp); 150 __ movq(rbp, rsp);
156 __ push(rsi); // Callee's context. 151 __ push(rsi); // Callee's context.
157 __ push(rdi); // Callee's JS Function. 152 __ push(rdi); // Callee's JS Function.
158 153
159 { Comment cmnt(masm_, "[ Allocate locals"); 154 { Comment cmnt(masm_, "[ Allocate locals");
160 int locals_count = scope()->num_stack_slots(); 155 int locals_count = scope()->num_stack_slots();
161 if (locals_count == 1) { 156 if (locals_count == 1) {
162 __ PushRoot(Heap::kUndefinedValueRootIndex); 157 __ PushRoot(Heap::kUndefinedValueRootIndex);
163 } else if (locals_count > 1) { 158 } else if (locals_count > 1) {
(...skipping 4151 matching lines...) Expand 10 before | Expand all | Expand 10 after
4315 __ ret(0); 4310 __ ret(0);
4316 } 4311 }
4317 4312
4318 4313
4319 #undef __ 4314 #undef __
4320 4315
4321 4316
4322 } } // namespace v8::internal 4317 } } // namespace v8::internal
4323 4318
4324 #endif // V8_TARGET_ARCH_X64 4319 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698