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

Side by Side Diff: src/x64/ic-x64.cc

Issue 146029: x64 code generation for construct calls, declaring global variables... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 __ movq(rbx, f); 199 __ movq(rbx, f);
200 __ CallStub(&stub); 200 __ CallStub(&stub);
201 201
202 // Move result to rdi and exit the internal frame. 202 // Move result to rdi and exit the internal frame.
203 __ movq(rdi, rax); 203 __ movq(rdi, rax);
204 __ LeaveInternalFrame(); 204 __ LeaveInternalFrame();
205 205
206 // Check if the receiver is a global object of some sort. 206 // Check if the receiver is a global object of some sort.
207 Label invoke, global; 207 Label invoke, global;
208 __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize)); // receiver 208 __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize)); // receiver
209 __ testq(rdx, Immediate(kSmiTagMask)); 209 __ testl(rdx, Immediate(kSmiTagMask));
210 __ j(zero, &invoke); 210 __ j(zero, &invoke);
211 __ movq(rcx, FieldOperand(rdx, HeapObject::kMapOffset)); 211 __ movq(rcx, FieldOperand(rdx, HeapObject::kMapOffset));
212 __ movzxbq(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset)); 212 __ movzxbq(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset));
213 __ cmpq(rcx, Immediate(static_cast<int8_t>(JS_GLOBAL_OBJECT_TYPE))); 213 __ cmpq(rcx, Immediate(static_cast<int8_t>(JS_GLOBAL_OBJECT_TYPE)));
214 __ j(equal, &global); 214 __ j(equal, &global);
215 __ cmpq(rcx, Immediate(static_cast<int8_t>(JS_BUILTINS_OBJECT_TYPE))); 215 __ cmpq(rcx, Immediate(static_cast<int8_t>(JS_BUILTINS_OBJECT_TYPE)));
216 __ j(not_equal, &invoke); 216 __ j(not_equal, &invoke);
217 217
218 // Patch the receiver on the stack. 218 // Patch the receiver on the stack.
219 __ bind(&global); 219 __ bind(&global);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 317 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
318 masm->int3(); // UNIMPLEMENTED. 318 masm->int3(); // UNIMPLEMENTED.
319 } 319 }
320 320
321 321
322 #undef __ 322 #undef __
323 323
324 324
325 } } // namespace v8::internal 325 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698