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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.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 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4630 __ jmp(&done); 4630 __ jmp(&done);
4631 4631
4632 __ bind(&is_smi); 4632 __ bind(&is_smi);
4633 __ ClampUint8(result_reg, scratch); 4633 __ ClampUint8(result_reg, scratch);
4634 4634
4635 __ bind(&done); 4635 __ bind(&done);
4636 } 4636 }
4637 4637
4638 4638
4639 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 4639 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
4640 ASSERT(instr->temp()->Equals(instr->result()));
4640 Register temp1 = ToRegister(instr->temp()); 4641 Register temp1 = ToRegister(instr->temp());
4641 Register temp2 = ToRegister(instr->temp2()); 4642 Register temp2 = ToRegister(instr->temp2());
4642 4643
4643 Handle<JSObject> holder = instr->holder(); 4644 Handle<JSObject> holder = instr->holder();
4644 Handle<JSObject> current_prototype = instr->prototype(); 4645 Handle<JSObject> current_prototype = instr->prototype();
4645 4646
4646 // Load prototype object. 4647 // Load prototype object.
4647 __ LoadHeapObject(temp1, current_prototype); 4648 __ LoadHeapObject(temp1, current_prototype);
4648 4649
4649 // Check prototype maps up to the holder. 4650 // Check prototype maps up to the holder.
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
5439 __ Subu(scratch, result, scratch); 5440 __ Subu(scratch, result, scratch);
5440 __ lw(result, FieldMemOperand(scratch, 5441 __ lw(result, FieldMemOperand(scratch,
5441 FixedArray::kHeaderSize - kPointerSize)); 5442 FixedArray::kHeaderSize - kPointerSize));
5442 __ bind(&done); 5443 __ bind(&done);
5443 } 5444 }
5444 5445
5445 5446
5446 #undef __ 5447 #undef __
5447 5448
5448 } } // namespace v8::internal 5449 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698