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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/hydrogen-instructions.cc ('k') | src/ia32/lithium-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 4738 matching lines...) Expand 10 before | Expand all | Expand 10 after
4749 // smi 4749 // smi
4750 __ bind(&is_smi); 4750 __ bind(&is_smi);
4751 __ SmiUntag(input_reg); 4751 __ SmiUntag(input_reg);
4752 __ ClampUint8(input_reg); 4752 __ ClampUint8(input_reg);
4753 4753
4754 __ bind(&done); 4754 __ bind(&done);
4755 } 4755 }
4756 4756
4757 4757
4758 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 4758 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
4759 ASSERT(instr->temp()->Equals(instr->result()));
4759 Register reg = ToRegister(instr->temp()); 4760 Register reg = ToRegister(instr->temp());
4760 4761
4761 Handle<JSObject> holder = instr->holder(); 4762 Handle<JSObject> holder = instr->holder();
4762 Handle<JSObject> current_prototype = instr->prototype(); 4763 Handle<JSObject> current_prototype = instr->prototype();
4763 4764
4764 // Load prototype object. 4765 // Load prototype object.
4765 __ LoadHeapObject(reg, current_prototype); 4766 __ LoadHeapObject(reg, current_prototype);
4766 4767
4767 // Check prototype maps up to the holder. 4768 // Check prototype maps up to the holder.
4768 while (!current_prototype.is_identical_to(holder)) { 4769 while (!current_prototype.is_identical_to(holder)) {
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
5537 FixedArray::kHeaderSize - kPointerSize)); 5538 FixedArray::kHeaderSize - kPointerSize));
5538 __ bind(&done); 5539 __ bind(&done);
5539 } 5540 }
5540 5541
5541 5542
5542 #undef __ 5543 #undef __
5543 5544
5544 } } // namespace v8::internal 5545 } } // namespace v8::internal
5545 5546
5546 #endif // V8_TARGET_ARCH_IA32 5547 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698