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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.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 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after
4530 // smi 4530 // smi
4531 __ bind(&is_smi); 4531 __ bind(&is_smi);
4532 __ SmiToInteger32(input_reg, input_reg); 4532 __ SmiToInteger32(input_reg, input_reg);
4533 __ ClampUint8(input_reg); 4533 __ ClampUint8(input_reg);
4534 4534
4535 __ bind(&done); 4535 __ bind(&done);
4536 } 4536 }
4537 4537
4538 4538
4539 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 4539 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
4540 ASSERT(instr->temp()->Equals(instr->result()));
4540 Register reg = ToRegister(instr->temp()); 4541 Register reg = ToRegister(instr->temp());
4541 4542
4542 Handle<JSObject> holder = instr->holder(); 4543 Handle<JSObject> holder = instr->holder();
4543 Handle<JSObject> current_prototype = instr->prototype(); 4544 Handle<JSObject> current_prototype = instr->prototype();
4544 4545
4545 // Load prototype object. 4546 // Load prototype object.
4546 __ LoadHeapObject(reg, current_prototype); 4547 __ LoadHeapObject(reg, current_prototype);
4547 4548
4548 // Check prototype maps up to the holder. 4549 // Check prototype maps up to the holder.
4549 while (!current_prototype.is_identical_to(holder)) { 4550 while (!current_prototype.is_identical_to(holder)) {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
5311 FixedArray::kHeaderSize - kPointerSize)); 5312 FixedArray::kHeaderSize - kPointerSize));
5312 __ bind(&done); 5313 __ bind(&done);
5313 } 5314 }
5314 5315
5315 5316
5316 #undef __ 5317 #undef __
5317 5318
5318 } } // namespace v8::internal 5319 } } // namespace v8::internal
5319 5320
5320 #endif // V8_TARGET_ARCH_X64 5321 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698