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

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

Issue 263923004: 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/mips/lithium-codegen-mips.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 // 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "x64/lithium-codegen-x64.h" 9 #include "x64/lithium-codegen-x64.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 } 1684 }
1685 } 1685 }
1686 1686
1687 1687
1688 void LCodeGen::DoConstantE(LConstantE* instr) { 1688 void LCodeGen::DoConstantE(LConstantE* instr) {
1689 __ LoadAddress(ToRegister(instr->result()), instr->value()); 1689 __ LoadAddress(ToRegister(instr->result()), instr->value());
1690 } 1690 }
1691 1691
1692 1692
1693 void LCodeGen::DoConstantT(LConstantT* instr) { 1693 void LCodeGen::DoConstantT(LConstantT* instr) {
1694 Handle<Object> value = instr->value(isolate()); 1694 Handle<Object> object = instr->value(isolate());
1695 __ Move(ToRegister(instr->result()), value); 1695 if (instr->hydrogen()->HasObjectMap()) {
1696 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
1697 CHECK(object->IsHeapObject());
1698 CHECK(!object_map->is_stable() ||
1699 *object_map == Handle<HeapObject>::cast(object)->map());
1700 }
1701 __ Move(ToRegister(instr->result()), object);
1696 } 1702 }
1697 1703
1698 1704
1699 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1705 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1700 Register result = ToRegister(instr->result()); 1706 Register result = ToRegister(instr->result());
1701 Register map = ToRegister(instr->value()); 1707 Register map = ToRegister(instr->value());
1702 __ EnumLength(result, map); 1708 __ EnumLength(result, map);
1703 } 1709 }
1704 1710
1705 1711
(...skipping 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after
5704 __ bind(deferred->exit()); 5710 __ bind(deferred->exit());
5705 __ bind(&done); 5711 __ bind(&done);
5706 } 5712 }
5707 5713
5708 5714
5709 #undef __ 5715 #undef __
5710 5716
5711 } } // namespace v8::internal 5717 } } // namespace v8::internal
5712 5718
5713 #endif // V8_TARGET_ARCH_X64 5719 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698