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

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

Issue 146833016: A64: Support the --deopt_every_n_times flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 ASSERT(info()->IsOptimizing() || info()->IsStub()); 877 ASSERT(info()->IsOptimizing() || info()->IsStub());
878 int id = environment->deoptimization_index(); 878 int id = environment->deoptimization_index();
879 Address entry = 879 Address entry =
880 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); 880 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
881 881
882 if (entry == NULL) { 882 if (entry == NULL) {
883 Abort("bailout was not prepared"); 883 Abort("bailout was not prepared");
884 return; 884 return;
885 } 885 }
886 886
887 TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag."); 887 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on A64.
888 if (FLAG_deopt_every_n_times == 1 &&
889 !info()->IsStub() &&
890 info()->opt_count() == id) {
891 __ Jump(entry, RelocInfo::RUNTIME_ENTRY);
892 return;
893 }
894
888 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { 895 if (FLAG_trap_on_deopt && info()->IsOptimizing()) {
889 __ Debug("trap_on_deopt", __LINE__, BREAK); 896 __ Debug("trap_on_deopt", __LINE__, BREAK);
890 } 897 }
891 898
892 899
893 // TODO(all): Currently this code directly jump to the second level deopt 900 // TODO(all): Currently this code directly jump to the second level deopt
894 // table entry. This code need to be updated if we decide to use the 901 // table entry. This code need to be updated if we decide to use the
895 // 2 levels of table. 902 // 2 levels of table.
896 ASSERT(info()->IsStub() || frame_is_built_); 903 ASSERT(info()->IsStub() || frame_is_built_);
897 bool needs_lazy_deopt = info()->IsStub(); 904 bool needs_lazy_deopt = info()->IsStub();
(...skipping 4678 matching lines...) Expand 10 before | Expand all | Expand 10 after
5576 __ Bind(&out_of_object); 5583 __ Bind(&out_of_object);
5577 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5584 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5578 // Index is equal to negated out of object property index plus 1. 5585 // Index is equal to negated out of object property index plus 1.
5579 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5586 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5580 __ Ldr(result, FieldMemOperand(result, 5587 __ Ldr(result, FieldMemOperand(result,
5581 FixedArray::kHeaderSize - kPointerSize)); 5588 FixedArray::kHeaderSize - kPointerSize));
5582 __ Bind(&done); 5589 __ Bind(&done);
5583 } 5590 }
5584 5591
5585 } } // namespace v8::internal 5592 } } // namespace v8::internal
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