Addressed comments.
https://codereview.chromium.org/23710014/diff/1/src/compiler.cc
File src/compiler.cc (right):
https://codereview.chromium.org/23710014/diff/1/src/compiler.cc#newcode993
src/compiler.cc:993: FullCodeGenerator::BackEdgeTableIterator
back_edges(shared->code(), &no_gc);
On 2013/09/02 17:03:35, titzer wrote:
It seems weird to make a BackEdgeTableIterator and then use it to
search. I
think that probably means you want a SearchBackEdgeTable method on
Code.
Done.
https://codereview.chromium.org/23710014/diff/1/src/compiler.cc#newcode1116
src/compiler.cc:1116: static uint32_t CurrentPcOffset(Isolate* isolate,
On 2013/09/02 17:03:35, titzer wrote:
Why are you doing a search for the PC of the top frame? This is should
already
be on the stack when calling the builtin, and thus available to be
passed in.
Already thought of that. Let me work on that on a separate CL.
https://codereview.chromium.org/23710014/diff/1/src/compiler.h
File src/compiler.h (right):
https://codereview.chromium.org/23710014/diff/1/src/compiler.h#newcode505
src/compiler.h:505: osr_pc_offset_(osr_pc_offset),
On 2013/09/02 17:03:35, titzer wrote:
This is the PC offset of the backedge. It seems weird that it's going
be part of
the compiler. Seems like it would fit better in the CompilationInfo.
Done.
https://codereview.chromium.org/23710014/diff/1/src/runtime.cc
File src/runtime.cc (left):
https://codereview.chromium.org/23710014/diff/1/src/runtime.cc#oldcode8601
src/runtime.cc:8601:
On 2013/09/02 17:03:35, titzer wrote:
Ah, now I see where this code came from. Why is this better in the
compiler? I
think the runtime should do the stack munging and the compiler should
stay out
of that business.
I'll have the builtin fetch the pc from stack, subtract from the
instruction start of the code object and return the pc offset as smi. In
a separate CL.
https://codereview.chromium.org/23710014/
--
--
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/groups/opt_out.