Reviewers: danno, loislo, paul.l..., dusmil.imgtec, gergely.kis.imgtec, akos.palfi.imgtec,

Description:
MIPS64: Propagate DeoptInfo to cpu-profiler

Port 86cae1633caa31f2225b6932850fb13d3a21cf59

Original commit message:
1) Deoptimizer::Reason was replaced with Deoptimizer::DeoptInfo
because it also has raw position. Also the old name clashes with DeoptReason
enum.

2) c_entry_fp assignment call was added to EntryGenerator::Generate
So we can calculate sp and have a chance to record the stack for the deopting
function.
btw it makes the test stable.

3) new kind of CodeEvents was added to cpu-profiler

4) GetDeoptInfo method was extracted from PrintDeoptLocation.
So it could be reused in cpu profiler.

BUG=452067
LOG=n

Please review this at https://codereview.chromium.org/907383003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+3, -0 lines):
  M src/mips64/deoptimizer-mips64.cc


Index: src/mips64/deoptimizer-mips64.cc
diff --git a/src/mips64/deoptimizer-mips64.cc b/src/mips64/deoptimizer-mips64.cc index d7a7f05fce333b0277ddc08f3a206d0ec5fa4e42..e77faedd3b1a448d6479b90bbd49beb4b72c3673 100644
--- a/src/mips64/deoptimizer-mips64.cc
+++ b/src/mips64/deoptimizer-mips64.cc
@@ -161,6 +161,9 @@ void Deoptimizer::EntryGenerator::Generate() {
     }
   }

+ __ li(a2, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
+  __ sd(fp, MemOperand(a2));
+
   const int kSavedRegistersAreaSize =
       (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize;



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to