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

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

Issue 6881003: Prevent deopt when assigning double values to typed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes to make ia32 tests run Created 9 years, 8 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 __ bind(&done); 1542 __ bind(&done);
1543 } 1543 }
1544 } 1544 }
1545 1545
1546 1546
1547 void LCodeGen::DoIsNullAndBranch(LIsNullAndBranch* instr) { 1547 void LCodeGen::DoIsNullAndBranch(LIsNullAndBranch* instr) {
1548 Register reg = ToRegister(instr->InputAt(0)); 1548 Register reg = ToRegister(instr->InputAt(0));
1549 1549
1550 int false_block = chunk_->LookupDestination(instr->false_block_id()); 1550 int false_block = chunk_->LookupDestination(instr->false_block_id());
1551 1551
1552 if (instr->hydrogen()->representation().IsSpecialization() || 1552 if (instr->hydrogen()->representation().IsUntagged() ||
1553 instr->hydrogen()->type().IsSmi()) { 1553 instr->hydrogen()->type().IsSmi()) {
1554 // If the expression is known to untagged or smi, then it's definitely 1554 // If the expression is known to untagged or smi, then it's definitely
1555 // not null, and it can't be a an undetectable object. 1555 // not null, and it can't be a an undetectable object.
1556 // Jump directly to the false block. 1556 // Jump directly to the false block.
1557 EmitGoto(false_block); 1557 EmitGoto(false_block);
1558 return; 1558 return;
1559 } 1559 }
1560 1560
1561 int true_block = chunk_->LookupDestination(instr->true_block_id()); 1561 int true_block = chunk_->LookupDestination(instr->true_block_id());
1562 1562
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
4016 RegisterEnvironmentForDeoptimization(environment); 4016 RegisterEnvironmentForDeoptimization(environment);
4017 ASSERT(osr_pc_offset_ == -1); 4017 ASSERT(osr_pc_offset_ == -1);
4018 osr_pc_offset_ = masm()->pc_offset(); 4018 osr_pc_offset_ = masm()->pc_offset();
4019 } 4019 }
4020 4020
4021 #undef __ 4021 #undef __
4022 4022
4023 } } // namespace v8::internal 4023 } } // namespace v8::internal
4024 4024
4025 #endif // V8_TARGET_ARCH_X64 4025 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen.cc ('K') | « src/objects.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698