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

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

Issue 10444055: Promoting elements transitions to their own field. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: renaming SearchMode fields and moving it into descriptor array class Created 8 years, 6 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/ast.cc » ('j') | src/objects.h » ('J')
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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 CompareMapMode mode) { 2001 CompareMapMode mode) {
2002 ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); 2002 ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset));
2003 cmp(scratch, Operand(map)); 2003 cmp(scratch, Operand(map));
2004 if (mode == ALLOW_ELEMENT_TRANSITION_MAPS) { 2004 if (mode == ALLOW_ELEMENT_TRANSITION_MAPS) {
2005 ElementsKind kind = map->elements_kind(); 2005 ElementsKind kind = map->elements_kind();
2006 if (IsFastElementsKind(kind)) { 2006 if (IsFastElementsKind(kind)) {
2007 bool packed = IsFastPackedElementsKind(kind); 2007 bool packed = IsFastPackedElementsKind(kind);
2008 Map* current_map = *map; 2008 Map* current_map = *map;
2009 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) { 2009 while (CanTransitionToMoreGeneralFastElementsKind(kind, packed)) {
2010 kind = GetNextMoreGeneralFastElementsKind(kind, packed); 2010 kind = GetNextMoreGeneralFastElementsKind(kind, packed);
2011 current_map = current_map->LookupElementsTransitionMap(kind, NULL); 2011 current_map = current_map->LookupElementsTransitionMap(kind);
2012 if (!current_map) break; 2012 if (!current_map) break;
2013 b(eq, early_success); 2013 b(eq, early_success);
2014 cmp(scratch, Operand(Handle<Map>(current_map))); 2014 cmp(scratch, Operand(Handle<Map>(current_map)));
2015 } 2015 }
2016 } 2016 }
2017 } 2017 }
2018 } 2018 }
2019 2019
2020 2020
2021 void MacroAssembler::CheckMap(Register obj, 2021 void MacroAssembler::CheckMap(Register obj,
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after
3779 void CodePatcher::EmitCondition(Condition cond) { 3779 void CodePatcher::EmitCondition(Condition cond) {
3780 Instr instr = Assembler::instr_at(masm_.pc_); 3780 Instr instr = Assembler::instr_at(masm_.pc_);
3781 instr = (instr & ~kCondMask) | cond; 3781 instr = (instr & ~kCondMask) | cond;
3782 masm_.emit(instr); 3782 masm_.emit(instr);
3783 } 3783 }
3784 3784
3785 3785
3786 } } // namespace v8::internal 3786 } } // namespace v8::internal
3787 3787
3788 #endif // V8_TARGET_ARCH_ARM 3788 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698