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

Side by Side Diff: src/ia32/builtins-ia32.cc

Issue 209011: Fix compile 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 // stored as a smi. 734 // stored as a smi.
735 // result: JSObject 735 // result: JSObject
736 // scratch1: elements array 736 // scratch1: elements array
737 // scratch2: start of next object 737 // scratch2: start of next object
738 __ mov(FieldOperand(scratch1, JSObject::kMapOffset), 738 __ mov(FieldOperand(scratch1, JSObject::kMapOffset),
739 Factory::fixed_array_map()); 739 Factory::fixed_array_map());
740 __ mov(FieldOperand(scratch1, Array::kLengthOffset), Immediate(holes)); 740 __ mov(FieldOperand(scratch1, Array::kLengthOffset), Immediate(holes));
741 741
742 // Fill the FixedArray with the hole value. Inline the code if short. 742 // Fill the FixedArray with the hole value. Inline the code if short.
743 // Reconsider loop unfolding if kPreallocatedArrayElements gets changed. 743 // Reconsider loop unfolding if kPreallocatedArrayElements gets changed.
744 static const int kLoopUnfoldLimit = 4 744 static const int kLoopUnfoldLimit = 4;
745 ASSERT(kPreallocatedArrayElements <= kLoopUnfoldLimit); 745 ASSERT(kPreallocatedArrayElements <= kLoopUnfoldLimit);
746 if (holes <= kLoopUnfoldLimit) { 746 if (holes <= kLoopUnfoldLimit) {
747 // Use a scratch register here to have only one reloc info when unfolding 747 // Use a scratch register here to have only one reloc info when unfolding
748 // the loop. 748 // the loop.
749 __ mov(scratch3, Factory::the_hole_value()); 749 __ mov(scratch3, Factory::the_hole_value());
750 for (int i = 0; i < holes; i++) { 750 for (int i = 0; i < holes; i++) {
751 __ mov(FieldOperand(scratch1, 751 __ mov(FieldOperand(scratch1,
752 FixedArray::kHeaderSize + i * kPointerSize), 752 FixedArray::kHeaderSize + i * kPointerSize),
753 scratch3); 753 scratch3);
754 } 754 }
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 // Dont adapt arguments. 1229 // Dont adapt arguments.
1230 // ------------------------------------------- 1230 // -------------------------------------------
1231 __ bind(&dont_adapt_arguments); 1231 __ bind(&dont_adapt_arguments);
1232 __ jmp(Operand(edx)); 1232 __ jmp(Operand(edx));
1233 } 1233 }
1234 1234
1235 1235
1236 #undef __ 1236 #undef __
1237 1237
1238 } } // namespace v8::internal 1238 } } // 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