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/builtins-x64.cc

Issue 214493002: Introduce rolp, rorp, rclp, rcrp, shlp, shrp and sarp for x64 port (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 9 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/assembler-x64.cc ('k') | src/x64/code-stubs-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 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1); 207 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
208 208
209 __ Pop(rdi); 209 __ Pop(rdi);
210 __ Pop(rax); 210 __ Pop(rax);
211 211
212 __ bind(&allocate); 212 __ bind(&allocate);
213 } 213 }
214 214
215 // Now allocate the JSObject on the heap. 215 // Now allocate the JSObject on the heap.
216 __ movzxbp(rdi, FieldOperand(rax, Map::kInstanceSizeOffset)); 216 __ movzxbp(rdi, FieldOperand(rax, Map::kInstanceSizeOffset));
217 __ shl(rdi, Immediate(kPointerSizeLog2)); 217 __ shlp(rdi, Immediate(kPointerSizeLog2));
218 if (create_memento) { 218 if (create_memento) {
219 __ addp(rdi, Immediate(AllocationMemento::kSize)); 219 __ addp(rdi, Immediate(AllocationMemento::kSize));
220 } 220 }
221 // rdi: size of new object 221 // rdi: size of new object
222 __ Allocate(rdi, 222 __ Allocate(rdi,
223 rbx, 223 rbx,
224 rdi, 224 rdi,
225 no_reg, 225 no_reg,
226 &rt_call, 226 &rt_call,
227 NO_ALLOCATION_FLAGS); 227 NO_ALLOCATION_FLAGS);
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 __ bind(&ok); 1494 __ bind(&ok);
1495 __ ret(0); 1495 __ ret(0);
1496 } 1496 }
1497 1497
1498 1498
1499 #undef __ 1499 #undef __
1500 1500
1501 } } // namespace v8::internal 1501 } } // namespace v8::internal
1502 1502
1503 #endif // V8_TARGET_ARCH_X64 1503 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698