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

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

Issue 14046017: Abcd for performance check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes and speedups in induction variable detection. Created 7 years, 7 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 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 4285 matching lines...) Expand 10 before | Expand all | Expand 10 after
4296 4296
4297 if (instr->index()->IsConstantOperand()) { 4297 if (instr->index()->IsConstantOperand()) {
4298 int constant_index = 4298 int constant_index =
4299 ToInteger32(LConstantOperand::cast(instr->index())); 4299 ToInteger32(LConstantOperand::cast(instr->index()));
4300 if (instr->hydrogen()->length()->representation().IsTagged()) { 4300 if (instr->hydrogen()->length()->representation().IsTagged()) {
4301 __ cmp(ToOperand(instr->length()), 4301 __ cmp(ToOperand(instr->length()),
4302 Immediate(Smi::FromInt(constant_index))); 4302 Immediate(Smi::FromInt(constant_index)));
4303 } else { 4303 } else {
4304 __ cmp(ToOperand(instr->length()), Immediate(constant_index)); 4304 __ cmp(ToOperand(instr->length()), Immediate(constant_index));
4305 } 4305 }
4306 DeoptimizeIf(below_equal, instr->environment()); 4306 if (instr->hydrogen()->allow_equality()) {
4307 DeoptimizeIf(below, instr->environment());
4308 } else {
4309 DeoptimizeIf(below_equal, instr->environment());
4310 }
4307 } else { 4311 } else {
4308 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); 4312 __ cmp(ToRegister(instr->index()), ToOperand(instr->length()));
4309 DeoptimizeIf(above_equal, instr->environment()); 4313 if (instr->hydrogen()->allow_equality()) {
4314 DeoptimizeIf(above, instr->environment());
4315 } else {
4316 DeoptimizeIf(above_equal, instr->environment());
4317 }
4310 } 4318 }
4311 } 4319 }
4312 4320
4313 4321
4314 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { 4322 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) {
4315 ElementsKind elements_kind = instr->elements_kind(); 4323 ElementsKind elements_kind = instr->elements_kind();
4316 LOperand* key = instr->key(); 4324 LOperand* key = instr->key();
4317 if (!key->IsConstantOperand() && 4325 if (!key->IsConstantOperand() &&
4318 ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(), 4326 ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(),
4319 elements_kind)) { 4327 elements_kind)) {
(...skipping 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after
6549 FixedArray::kHeaderSize - kPointerSize)); 6557 FixedArray::kHeaderSize - kPointerSize));
6550 __ bind(&done); 6558 __ bind(&done);
6551 } 6559 }
6552 6560
6553 6561
6554 #undef __ 6562 #undef __
6555 6563
6556 } } // namespace v8::internal 6564 } } // namespace v8::internal
6557 6565
6558 #endif // V8_TARGET_ARCH_IA32 6566 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698