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

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

Issue 173883003: Remove the unused LoadInitialArrayMap. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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.h ('k') | src/ia32/macro-assembler-ia32.h » ('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 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 cmp(map_in_out, ip); 2883 cmp(map_in_out, ip);
2884 b(ne, no_map_match); 2884 b(ne, no_map_match);
2885 2885
2886 // Use the transitioned cached map. 2886 // Use the transitioned cached map.
2887 offset = transitioned_kind * kPointerSize + 2887 offset = transitioned_kind * kPointerSize +
2888 FixedArrayBase::kHeaderSize; 2888 FixedArrayBase::kHeaderSize;
2889 ldr(map_in_out, FieldMemOperand(scratch, offset)); 2889 ldr(map_in_out, FieldMemOperand(scratch, offset));
2890 } 2890 }
2891 2891
2892 2892
2893 void MacroAssembler::LoadInitialArrayMap(
2894 Register function_in, Register scratch,
2895 Register map_out, bool can_have_holes) {
2896 ASSERT(!function_in.is(map_out));
2897 Label done;
2898 ldr(map_out, FieldMemOperand(function_in,
2899 JSFunction::kPrototypeOrInitialMapOffset));
2900 if (!FLAG_smi_only_arrays) {
2901 ElementsKind kind = can_have_holes ? FAST_HOLEY_ELEMENTS : FAST_ELEMENTS;
2902 LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
2903 kind,
2904 map_out,
2905 scratch,
2906 &done);
2907 } else if (can_have_holes) {
2908 LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
2909 FAST_HOLEY_SMI_ELEMENTS,
2910 map_out,
2911 scratch,
2912 &done);
2913 }
2914 bind(&done);
2915 }
2916
2917
2918 void MacroAssembler::LoadGlobalFunction(int index, Register function) { 2893 void MacroAssembler::LoadGlobalFunction(int index, Register function) {
2919 // Load the global or builtins object from the current context. 2894 // Load the global or builtins object from the current context.
2920 ldr(function, 2895 ldr(function,
2921 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 2896 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
2922 // Load the native context from the global or builtins object. 2897 // Load the native context from the global or builtins object.
2923 ldr(function, FieldMemOperand(function, 2898 ldr(function, FieldMemOperand(function,
2924 GlobalObject::kNativeContextOffset)); 2899 GlobalObject::kNativeContextOffset));
2925 // Load the function from the native context. 2900 // Load the function from the native context.
2926 ldr(function, MemOperand(function, Context::SlotOffset(index))); 2901 ldr(function, MemOperand(function, Context::SlotOffset(index)));
2927 } 2902 }
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
4066 void CodePatcher::EmitCondition(Condition cond) { 4041 void CodePatcher::EmitCondition(Condition cond) {
4067 Instr instr = Assembler::instr_at(masm_.pc_); 4042 Instr instr = Assembler::instr_at(masm_.pc_);
4068 instr = (instr & ~kCondMask) | cond; 4043 instr = (instr & ~kCondMask) | cond;
4069 masm_.emit(instr); 4044 masm_.emit(instr);
4070 } 4045 }
4071 4046
4072 4047
4073 } } // namespace v8::internal 4048 } } // namespace v8::internal
4074 4049
4075 #endif // V8_TARGET_ARCH_ARM 4050 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698