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

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

Issue 17568015: New array bounds check elimination pass (focused on induction variables and bitwise operations). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Recursive traversal implementation. Created 7 years, 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 4091 matching lines...) Expand 10 before | Expand all | Expand 10 after
4102 ToInteger32(LConstantOperand::cast(instr->index())); 4102 ToInteger32(LConstantOperand::cast(instr->index()));
4103 if (instr->hydrogen()->length()->representation().IsSmi()) { 4103 if (instr->hydrogen()->length()->representation().IsSmi()) {
4104 __ Cmp(length, Smi::FromInt(constant_index)); 4104 __ Cmp(length, Smi::FromInt(constant_index));
4105 } else { 4105 } else {
4106 __ cmpq(length, Immediate(constant_index)); 4106 __ cmpq(length, Immediate(constant_index));
4107 } 4107 }
4108 } else { 4108 } else {
4109 __ cmpq(length, ToRegister(instr->index())); 4109 __ cmpq(length, ToRegister(instr->index()));
4110 } 4110 }
4111 } 4111 }
4112 DeoptimizeIf(below_equal, instr->environment()); 4112 Condition condition =
4113 instr->hydrogen()->allow_equality() ? below : below_equal;
4114 DeoptimizeIf(condition, instr->environment());
4113 } 4115 }
4114 4116
4115 4117
4116 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { 4118 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) {
4117 ElementsKind elements_kind = instr->elements_kind(); 4119 ElementsKind elements_kind = instr->elements_kind();
4118 LOperand* key = instr->key(); 4120 LOperand* key = instr->key();
4119 if (!key->IsConstantOperand()) { 4121 if (!key->IsConstantOperand()) {
4120 Register key_reg = ToRegister(key); 4122 Register key_reg = ToRegister(key);
4121 // Even though the HLoad/StoreKeyedFastElement instructions force 4123 // Even though the HLoad/StoreKeyedFastElement instructions force
4122 // the input representation for the key to be an integer, the input 4124 // the input representation for the key to be an integer, the input
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
5605 FixedArray::kHeaderSize - kPointerSize)); 5607 FixedArray::kHeaderSize - kPointerSize));
5606 __ bind(&done); 5608 __ bind(&done);
5607 } 5609 }
5608 5610
5609 5611
5610 #undef __ 5612 #undef __
5611 5613
5612 } } // namespace v8::internal 5614 } } // namespace v8::internal
5613 5615
5614 #endif // V8_TARGET_ARCH_X64 5616 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/v8-counters.h ('K') | « src/v8-counters.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698