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

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

Issue 200563002: A64: fix restoring of registers in deopt_every_n_times. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 ExternalReference count = ExternalReference::stress_deopt_count(isolate()); 1003 ExternalReference count = ExternalReference::stress_deopt_count(isolate());
1004 1004
1005 __ Push(x0, x1, x2); 1005 __ Push(x0, x1, x2);
1006 __ Mrs(x2, NZCV); 1006 __ Mrs(x2, NZCV);
1007 __ Mov(x0, Operand(count)); 1007 __ Mov(x0, Operand(count));
1008 __ Ldr(w1, MemOperand(x0)); 1008 __ Ldr(w1, MemOperand(x0));
1009 __ Subs(x1, x1, 1); 1009 __ Subs(x1, x1, 1);
1010 __ B(gt, &not_zero); 1010 __ B(gt, &not_zero);
1011 __ Mov(w1, FLAG_deopt_every_n_times); 1011 __ Mov(w1, FLAG_deopt_every_n_times);
1012 __ Str(w1, MemOperand(x0)); 1012 __ Str(w1, MemOperand(x0));
1013 __ Pop(x0, x1, x2); 1013 __ Pop(x2, x1, x0);
1014 ASSERT(frame_is_built_); 1014 ASSERT(frame_is_built_);
1015 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 1015 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
1016 __ Unreachable(); 1016 __ Unreachable();
1017 1017
1018 __ Bind(&not_zero); 1018 __ Bind(&not_zero);
1019 __ Str(w1, MemOperand(x0)); 1019 __ Str(w1, MemOperand(x0));
1020 __ Msr(NZCV, x2); 1020 __ Msr(NZCV, x2);
1021 __ Pop(x0, x1, x2); 1021 __ Pop(x2, x1, x0);
1022 } 1022 }
1023 1023
1024 if (info()->ShouldTrapOnDeopt()) { 1024 if (info()->ShouldTrapOnDeopt()) {
1025 Label dont_trap; 1025 Label dont_trap;
1026 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); 1026 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit);
1027 __ Debug("trap_on_deopt", __LINE__, BREAK); 1027 __ Debug("trap_on_deopt", __LINE__, BREAK);
1028 __ Bind(&dont_trap); 1028 __ Bind(&dont_trap);
1029 } 1029 }
1030 1030
1031 ASSERT(info()->IsStub() || frame_is_built_); 1031 ASSERT(info()->IsStub() || frame_is_built_);
(...skipping 4807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5839 __ Bind(&out_of_object); 5839 __ Bind(&out_of_object);
5840 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5840 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5841 // Index is equal to negated out of object property index plus 1. 5841 // Index is equal to negated out of object property index plus 1.
5842 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5842 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5843 __ Ldr(result, FieldMemOperand(result, 5843 __ Ldr(result, FieldMemOperand(result,
5844 FixedArray::kHeaderSize - kPointerSize)); 5844 FixedArray::kHeaderSize - kPointerSize));
5845 __ Bind(&done); 5845 __ Bind(&done);
5846 } 5846 }
5847 5847
5848 } } // namespace v8::internal 5848 } } // 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