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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 193039: Fix lint error (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 } 1337 }
1338 } 1338 }
1339 1339
1340 1340
1341 void MacroAssembler::AllocateObjectInNewSpace(Register object_size, 1341 void MacroAssembler::AllocateObjectInNewSpace(Register object_size,
1342 Register result, 1342 Register result,
1343 Register result_end, 1343 Register result_end,
1344 Register scratch, 1344 Register scratch,
1345 Label* gc_required, 1345 Label* gc_required,
1346 AllocationFlags flags) { 1346 AllocationFlags flags) {
1347
1348 // Load address of new object into result. 1347 // Load address of new object into result.
1349 LoadAllocationTopHelper(result, result_end, scratch, flags); 1348 LoadAllocationTopHelper(result, result_end, scratch, flags);
1350 1349
1351 // Calculate new top and bail out if new space is exhausted. 1350 // Calculate new top and bail out if new space is exhausted.
1352 ExternalReference new_space_allocation_limit = 1351 ExternalReference new_space_allocation_limit =
1353 ExternalReference::new_space_allocation_limit_address(); 1352 ExternalReference::new_space_allocation_limit_address();
1354 if (!object_size.is(result_end)) { 1353 if (!object_size.is(result_end)) {
1355 movq(result_end, object_size); 1354 movq(result_end, object_size);
1356 } 1355 }
1357 addq(result_end, result); 1356 addq(result_end, result);
(...skipping 20 matching lines...) Expand all
1378 movq(kScratchRegister, new_space_allocation_top); 1377 movq(kScratchRegister, new_space_allocation_top);
1379 #ifdef DEBUG 1378 #ifdef DEBUG
1380 cmpq(object, Operand(kScratchRegister, 0)); 1379 cmpq(object, Operand(kScratchRegister, 0));
1381 Check(below, "Undo allocation of non allocated memory"); 1380 Check(below, "Undo allocation of non allocated memory");
1382 #endif 1381 #endif
1383 movq(Operand(kScratchRegister, 0), object); 1382 movq(Operand(kScratchRegister, 0), object);
1384 } 1383 }
1385 1384
1386 1385
1387 } } // namespace v8::internal 1386 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698