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

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

Issue 287363002: Partial revert of "Next bunch of fixes for check elimination". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/mips/lithium-codegen-mips.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "ia32/lithium-codegen-ia32.h" 9 #include "ia32/lithium-codegen-ia32.h"
10 #include "ic.h" 10 #include "ic.h"
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 1742
1743 void LCodeGen::DoConstantE(LConstantE* instr) { 1743 void LCodeGen::DoConstantE(LConstantE* instr) {
1744 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); 1744 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value()));
1745 } 1745 }
1746 1746
1747 1747
1748 void LCodeGen::DoConstantT(LConstantT* instr) { 1748 void LCodeGen::DoConstantT(LConstantT* instr) {
1749 Register reg = ToRegister(instr->result()); 1749 Register reg = ToRegister(instr->result());
1750 Handle<Object> object = instr->value(isolate()); 1750 Handle<Object> object = instr->value(isolate());
1751 AllowDeferredHandleDereference smi_check; 1751 AllowDeferredHandleDereference smi_check;
1752 if (instr->hydrogen()->HasObjectMap()) {
1753 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
1754 ASSERT(object->IsHeapObject());
1755 ASSERT(!object_map->is_stable() ||
1756 *object_map == Handle<HeapObject>::cast(object)->map());
1757 USE(object_map);
1758 }
1759 __ LoadObject(reg, object); 1752 __ LoadObject(reg, object);
1760 } 1753 }
1761 1754
1762 1755
1763 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1756 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1764 Register result = ToRegister(instr->result()); 1757 Register result = ToRegister(instr->result());
1765 Register map = ToRegister(instr->value()); 1758 Register map = ToRegister(instr->value());
1766 __ EnumLength(result, map); 1759 __ EnumLength(result, map);
1767 } 1760 }
1768 1761
(...skipping 3919 matching lines...) Expand 10 before | Expand all | Expand 10 after
5688 __ bind(deferred->exit()); 5681 __ bind(deferred->exit());
5689 __ bind(&done); 5682 __ bind(&done);
5690 } 5683 }
5691 5684
5692 5685
5693 #undef __ 5686 #undef __
5694 5687
5695 } } // namespace v8::internal 5688 } } // namespace v8::internal
5696 5689
5697 #endif // V8_TARGET_ARCH_IA32 5690 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698