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

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

Issue 135903014: Stay in fast enum case if the empty_slow_element_dictionary is used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | src/ia32/macro-assembler-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 3908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3919 3919
3920 // For all objects but the receiver, check that the cache is empty. 3920 // For all objects but the receiver, check that the cache is empty.
3921 EnumLength(r3, r1); 3921 EnumLength(r3, r1);
3922 cmp(r3, Operand(Smi::FromInt(0))); 3922 cmp(r3, Operand(Smi::FromInt(0)));
3923 b(ne, call_runtime); 3923 b(ne, call_runtime);
3924 3924
3925 bind(&start); 3925 bind(&start);
3926 3926
3927 // Check that there are no elements. Register r2 contains the current JS 3927 // Check that there are no elements. Register r2 contains the current JS
3928 // object we've reached through the prototype chain. 3928 // object we've reached through the prototype chain.
3929 Label no_elements;
3929 ldr(r2, FieldMemOperand(r2, JSObject::kElementsOffset)); 3930 ldr(r2, FieldMemOperand(r2, JSObject::kElementsOffset));
3930 cmp(r2, empty_fixed_array_value); 3931 cmp(r2, empty_fixed_array_value);
3932 b(eq, &no_elements);
3933
3934 // Second chance, the object may be using the empty slow element dictionary.
3935 CompareRoot(r2, Heap::kEmptySlowElementDictionaryRootIndex);
3931 b(ne, call_runtime); 3936 b(ne, call_runtime);
3932 3937
3938 bind(&no_elements);
3933 ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset)); 3939 ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset));
3934 cmp(r2, null_value); 3940 cmp(r2, null_value);
3935 b(ne, &next); 3941 b(ne, &next);
3936 } 3942 }
3937 3943
3938 3944
3939 void MacroAssembler::TestJSArrayForAllocationMemento( 3945 void MacroAssembler::TestJSArrayForAllocationMemento(
3940 Register receiver_reg, 3946 Register receiver_reg,
3941 Register scratch_reg, 3947 Register scratch_reg,
3942 Label* no_memento_found) { 3948 Label* no_memento_found) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
4071 void CodePatcher::EmitCondition(Condition cond) { 4077 void CodePatcher::EmitCondition(Condition cond) {
4072 Instr instr = Assembler::instr_at(masm_.pc_); 4078 Instr instr = Assembler::instr_at(masm_.pc_);
4073 instr = (instr & ~kCondMask) | cond; 4079 instr = (instr & ~kCondMask) | cond;
4074 masm_.emit(instr); 4080 masm_.emit(instr);
4075 } 4081 }
4076 4082
4077 4083
4078 } } // namespace v8::internal 4084 } } // namespace v8::internal
4079 4085
4080 #endif // V8_TARGET_ARCH_ARM 4086 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698