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

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

Issue 17444011: Fix to_boolean type feedback for unary and binary ops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
« src/typing.cc ('K') | « src/typing.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 __ xorps(xmm0, xmm0); 2003 __ xorps(xmm0, xmm0);
2004 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); 2004 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset));
2005 __ j(zero, instr->FalseLabel(chunk_)); 2005 __ j(zero, instr->FalseLabel(chunk_));
2006 __ jmp(instr->TrueLabel(chunk_)); 2006 __ jmp(instr->TrueLabel(chunk_));
2007 __ bind(&not_heap_number); 2007 __ bind(&not_heap_number);
2008 } 2008 }
2009 2009
2010 if (!expected.IsGeneric()) { 2010 if (!expected.IsGeneric()) {
2011 // We've seen something for the first time -> deopt. 2011 // We've seen something for the first time -> deopt.
2012 // This can only happen if we are not generic already. 2012 // This can only happen if we are not generic already.
2013 DeoptimizeIf(no_condition, instr->environment()); 2013 if (!info()->IsStub()) {
2014 SoftDeoptimize(instr->environment());
2015 } else {
2016 DeoptimizeIf(no_condition, instr->environment());
2017 }
2014 } 2018 }
2015 } 2019 }
2016 } 2020 }
2017 } 2021 }
2018 2022
2019 2023
2020 void LCodeGen::EmitGoto(int block) { 2024 void LCodeGen::EmitGoto(int block) {
2021 if (!IsNextEmittedBlock(block)) { 2025 if (!IsNextEmittedBlock(block)) {
2022 __ jmp(chunk_->GetAssemblyLabel(chunk_->LookupDestination(block))); 2026 __ jmp(chunk_->GetAssemblyLabel(chunk_->LookupDestination(block)));
2023 } 2027 }
(...skipping 3637 matching lines...) Expand 10 before | Expand all | Expand 10 after
5661 FixedArray::kHeaderSize - kPointerSize)); 5665 FixedArray::kHeaderSize - kPointerSize));
5662 __ bind(&done); 5666 __ bind(&done);
5663 } 5667 }
5664 5668
5665 5669
5666 #undef __ 5670 #undef __
5667 5671
5668 } } // namespace v8::internal 5672 } } // namespace v8::internal
5669 5673
5670 #endif // V8_TARGET_ARCH_X64 5674 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/typing.cc ('K') | « src/typing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698