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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 12440041: Generalizing remaining Allocate functions in the macro assemblers used in pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/arm/macro-assembler-arm.cc ('k') | src/ia32/builtins-ia32.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 2970 matching lines...) Expand 10 before | Expand all | Expand 10 after
2981 // r1: constructor function 2981 // r1: constructor function
2982 // r2: initial map 2982 // r2: initial map
2983 // r7: undefined 2983 // r7: undefined
2984 ASSERT(function->has_initial_map()); 2984 ASSERT(function->has_initial_map());
2985 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset)); 2985 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset));
2986 #ifdef DEBUG 2986 #ifdef DEBUG
2987 int instance_size = function->initial_map()->instance_size(); 2987 int instance_size = function->initial_map()->instance_size();
2988 __ cmp(r3, Operand(instance_size >> kPointerSizeLog2)); 2988 __ cmp(r3, Operand(instance_size >> kPointerSizeLog2));
2989 __ Check(eq, "Instance size of initial map changed."); 2989 __ Check(eq, "Instance size of initial map changed.");
2990 #endif 2990 #endif
2991 __ AllocateInNewSpace(r3, r4, r5, r6, &generic_stub_call, SIZE_IN_WORDS); 2991 __ Allocate(r3, r4, r5, r6, &generic_stub_call, SIZE_IN_WORDS);
2992 2992
2993 // Allocated the JSObject, now initialize the fields. Map is set to initial 2993 // Allocated the JSObject, now initialize the fields. Map is set to initial
2994 // map and properties and elements are set to empty fixed array. 2994 // map and properties and elements are set to empty fixed array.
2995 // r0: argc 2995 // r0: argc
2996 // r1: constructor function 2996 // r1: constructor function
2997 // r2: initial map 2997 // r2: initial map
2998 // r3: object size (in words) 2998 // r3: object size (in words)
2999 // r4: JSObject (not tagged) 2999 // r4: JSObject (not tagged)
3000 // r7: undefined 3000 // r7: undefined
3001 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex); 3001 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex);
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
3848 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3848 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3849 } 3849 }
3850 } 3850 }
3851 3851
3852 3852
3853 #undef __ 3853 #undef __
3854 3854
3855 } } // namespace v8::internal 3855 } } // namespace v8::internal
3856 3856
3857 #endif // V8_TARGET_ARCH_ARM 3857 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698