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

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

Issue 10993011: Merged r12531, r12562, r12563 into 3.12 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.12
Patch Set: fix compilation of cctest/test-heap.cc Created 8 years, 2 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 | « src/version.cc ('k') | test/cctest/test-api.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 3625 matching lines...) Expand 10 before | Expand all | Expand 10 after
3636 } 3636 }
3637 } else { 3637 } else {
3638 Register reg2 = ToRegister(instr->index()); 3638 Register reg2 = ToRegister(instr->index());
3639 if (FLAG_debug_code && 3639 if (FLAG_debug_code &&
3640 !instr->hydrogen()->index()->representation().IsTagged()) { 3640 !instr->hydrogen()->index()->representation().IsTagged()) {
3641 __ AbortIfNotZeroExtended(reg2); 3641 __ AbortIfNotZeroExtended(reg2);
3642 } 3642 }
3643 __ cmpq(reg, reg2); 3643 __ cmpq(reg, reg2);
3644 } 3644 }
3645 } else { 3645 } else {
3646 Operand length = ToOperand(instr->length());
3646 if (instr->index()->IsConstantOperand()) { 3647 if (instr->index()->IsConstantOperand()) {
3647 __ cmpq(ToOperand(instr->length()), 3648 int constant_index =
3648 Immediate(ToInteger32(LConstantOperand::cast(instr->index())))); 3649 ToInteger32(LConstantOperand::cast(instr->index()));
3650 if (instr->hydrogen()->length()->representation().IsTagged()) {
3651 __ Cmp(length, Smi::FromInt(constant_index));
3652 } else {
3653 __ cmpq(length, Immediate(constant_index));
3654 }
3649 } else { 3655 } else {
3650 __ cmpq(ToOperand(instr->length()), ToRegister(instr->index())); 3656 __ cmpq(length, ToRegister(instr->index()));
3651 } 3657 }
3652 } 3658 }
3653 DeoptimizeIf(below_equal, instr->environment()); 3659 DeoptimizeIf(below_equal, instr->environment());
3654 } 3660 }
3655 3661
3656 3662
3657 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { 3663 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) {
3658 Register value = ToRegister(instr->value()); 3664 Register value = ToRegister(instr->value());
3659 Register elements = ToRegister(instr->object()); 3665 Register elements = ToRegister(instr->object());
3660 LOperand* key = instr->key(); 3666 LOperand* key = instr->key();
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
5100 FixedArray::kHeaderSize - kPointerSize)); 5106 FixedArray::kHeaderSize - kPointerSize));
5101 __ bind(&done); 5107 __ bind(&done);
5102 } 5108 }
5103 5109
5104 5110
5105 #undef __ 5111 #undef __
5106 5112
5107 } } // namespace v8::internal 5113 } } // namespace v8::internal
5108 5114
5109 #endif // V8_TARGET_ARCH_X64 5115 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698