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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 11338030: Improve handling of property loads on the proto chain. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added unit test Created 8 years, 1 month 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/lithium-arm.cc ('k') | src/hydrogen.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 4894 matching lines...) Expand 10 before | Expand all | Expand 10 after
4905 4905
4906 // smi 4906 // smi
4907 __ bind(&is_smi); 4907 __ bind(&is_smi);
4908 __ ClampUint8(result_reg, result_reg); 4908 __ ClampUint8(result_reg, result_reg);
4909 4909
4910 __ bind(&done); 4910 __ bind(&done);
4911 } 4911 }
4912 4912
4913 4913
4914 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 4914 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
4915 ASSERT(instr->temp()->Equals(instr->result()));
4915 Register temp1 = ToRegister(instr->temp()); 4916 Register temp1 = ToRegister(instr->temp());
4916 Register temp2 = ToRegister(instr->temp2()); 4917 Register temp2 = ToRegister(instr->temp2());
4917 4918
4918 Handle<JSObject> holder = instr->holder(); 4919 Handle<JSObject> holder = instr->holder();
4919 Handle<JSObject> current_prototype = instr->prototype(); 4920 Handle<JSObject> current_prototype = instr->prototype();
4920 4921
4921 // Load prototype object. 4922 // Load prototype object.
4922 __ LoadHeapObject(temp1, current_prototype); 4923 __ LoadHeapObject(temp1, current_prototype);
4923 4924
4924 // Check prototype maps up to the holder. 4925 // Check prototype maps up to the holder.
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
5678 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5679 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5679 __ ldr(result, FieldMemOperand(scratch, 5680 __ ldr(result, FieldMemOperand(scratch,
5680 FixedArray::kHeaderSize - kPointerSize)); 5681 FixedArray::kHeaderSize - kPointerSize));
5681 __ bind(&done); 5682 __ bind(&done);
5682 } 5683 }
5683 5684
5684 5685
5685 #undef __ 5686 #undef __
5686 5687
5687 } } // namespace v8::internal 5688 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698