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

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

Issue 12388016: Revert "Reapply optimization of DeoptimizeIf for ia32." (r13767) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } 890 }
891 891
892 ASSERT(info()->IsStub() || frame_is_built_); 892 ASSERT(info()->IsStub() || frame_is_built_);
893 bool needs_lazy_deopt = info()->IsStub(); 893 bool needs_lazy_deopt = info()->IsStub();
894 if (cc == no_condition && frame_is_built_) { 894 if (cc == no_condition && frame_is_built_) {
895 if (needs_lazy_deopt) { 895 if (needs_lazy_deopt) {
896 __ call(entry, RelocInfo::RUNTIME_ENTRY); 896 __ call(entry, RelocInfo::RUNTIME_ENTRY);
897 } else { 897 } else {
898 __ jmp(entry, RelocInfo::RUNTIME_ENTRY); 898 __ jmp(entry, RelocInfo::RUNTIME_ENTRY);
899 } 899 }
900 } else if (!needs_lazy_deopt && frame_is_built_) {
901 // Optimization for ia32 only that skips the indirection through a
902 // jump table entry for conditional deopts if possible.
903 ASSERT(cc != no_condition);
904 __ j(cc, entry, RelocInfo::RUNTIME_ENTRY);
905 } else { 900 } else {
906 // We often have several deopts to the same entry, reuse the last 901 // We often have several deopts to the same entry, reuse the last
907 // jump entry if this is the case. 902 // jump entry if this is the case.
908 if (jump_table_.is_empty() || 903 if (jump_table_.is_empty() ||
909 jump_table_.last().address != entry || 904 jump_table_.last().address != entry ||
910 jump_table_.last().needs_frame != !frame_is_built_ || 905 jump_table_.last().needs_frame != !frame_is_built_ ||
911 jump_table_.last().is_lazy_deopt != needs_lazy_deopt) { 906 jump_table_.last().is_lazy_deopt != needs_lazy_deopt) {
912 JumpTableEntry table_entry(entry, !frame_is_built_, needs_lazy_deopt); 907 JumpTableEntry table_entry(entry, !frame_is_built_, needs_lazy_deopt);
913 jump_table_.Add(table_entry, zone()); 908 jump_table_.Add(table_entry, zone());
914 } 909 }
(...skipping 5333 matching lines...) Expand 10 before | Expand all | Expand 10 after
6248 FixedArray::kHeaderSize - kPointerSize)); 6243 FixedArray::kHeaderSize - kPointerSize));
6249 __ bind(&done); 6244 __ bind(&done);
6250 } 6245 }
6251 6246
6252 6247
6253 #undef __ 6248 #undef __
6254 6249
6255 } } // namespace v8::internal 6250 } } // namespace v8::internal
6256 6251
6257 #endif // V8_TARGET_ARCH_IA32 6252 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698