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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 1732
1733 1733
1734 void LCodeGen::DoConstantE(LConstantE* instr) { 1734 void LCodeGen::DoConstantE(LConstantE* instr) {
1735 __ li(ToRegister(instr->result()), Operand(instr->value())); 1735 __ li(ToRegister(instr->result()), Operand(instr->value()));
1736 } 1736 }
1737 1737
1738 1738
1739 void LCodeGen::DoConstantT(LConstantT* instr) { 1739 void LCodeGen::DoConstantT(LConstantT* instr) {
1740 Handle<Object> object = instr->value(isolate()); 1740 Handle<Object> object = instr->value(isolate());
1741 AllowDeferredHandleDereference smi_check; 1741 AllowDeferredHandleDereference smi_check;
1742 if (instr->hydrogen()->HasObjectMap()) {
1743 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
1744 ASSERT(object->IsHeapObject());
1745 ASSERT(!object_map->is_stable() ||
1746 *object_map == Handle<HeapObject>::cast(object)->map());
1747 USE(object_map);
1748 }
1749 __ li(ToRegister(instr->result()), object); 1742 __ li(ToRegister(instr->result()), object);
1750 } 1743 }
1751 1744
1752 1745
1753 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 1746 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
1754 Register result = ToRegister(instr->result()); 1747 Register result = ToRegister(instr->result());
1755 Register map = ToRegister(instr->value()); 1748 Register map = ToRegister(instr->value());
1756 __ EnumLength(result, map); 1749 __ EnumLength(result, map);
1757 } 1750 }
1758 1751
(...skipping 4164 matching lines...) Expand 10 before | Expand all | Expand 10 after
5923 __ lw(result, FieldMemOperand(scratch, 5916 __ lw(result, FieldMemOperand(scratch,
5924 FixedArray::kHeaderSize - kPointerSize)); 5917 FixedArray::kHeaderSize - kPointerSize));
5925 __ bind(deferred->exit()); 5918 __ bind(deferred->exit());
5926 __ bind(&done); 5919 __ bind(&done);
5927 } 5920 }
5928 5921
5929 5922
5930 #undef __ 5923 #undef __
5931 5924
5932 } } // namespace v8::internal 5925 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698