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

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

Issue 12855004: MIPS: 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/mips/macro-assembler-mips.cc ('k') | 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 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 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3016 // a1: constructor function 3016 // a1: constructor function
3017 // a2: initial map 3017 // a2: initial map
3018 // t7: undefined 3018 // t7: undefined
3019 ASSERT(function->has_initial_map()); 3019 ASSERT(function->has_initial_map());
3020 __ lbu(a3, FieldMemOperand(a2, Map::kInstanceSizeOffset)); 3020 __ lbu(a3, FieldMemOperand(a2, Map::kInstanceSizeOffset));
3021 #ifdef DEBUG 3021 #ifdef DEBUG
3022 int instance_size = function->initial_map()->instance_size(); 3022 int instance_size = function->initial_map()->instance_size();
3023 __ Check(eq, "Instance size of initial map changed.", 3023 __ Check(eq, "Instance size of initial map changed.",
3024 a3, Operand(instance_size >> kPointerSizeLog2)); 3024 a3, Operand(instance_size >> kPointerSizeLog2));
3025 #endif 3025 #endif
3026 __ AllocateInNewSpace(a3, t4, t5, t6, &generic_stub_call, SIZE_IN_WORDS); 3026 __ Allocate(a3, t4, t5, t6, &generic_stub_call, SIZE_IN_WORDS);
3027 3027
3028 // Allocated the JSObject, now initialize the fields. Map is set to initial 3028 // Allocated the JSObject, now initialize the fields. Map is set to initial
3029 // map and properties and elements are set to empty fixed array. 3029 // map and properties and elements are set to empty fixed array.
3030 // a0: argc 3030 // a0: argc
3031 // a1: constructor function 3031 // a1: constructor function
3032 // a2: initial map 3032 // a2: initial map
3033 // a3: object size (in words) 3033 // a3: object size (in words)
3034 // t4: JSObject (not tagged) 3034 // t4: JSObject (not tagged)
3035 // t7: undefined 3035 // t7: undefined
3036 __ LoadRoot(t6, Heap::kEmptyFixedArrayRootIndex); 3036 __ LoadRoot(t6, Heap::kEmptyFixedArrayRootIndex);
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3951 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3951 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3952 } 3952 }
3953 } 3953 }
3954 3954
3955 3955
3956 #undef __ 3956 #undef __
3957 3957
3958 } } // namespace v8::internal 3958 } } // namespace v8::internal
3959 3959
3960 #endif // V8_TARGET_ARCH_MIPS 3960 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698