v8/include
jgruber b4c1aefb9c Refactor data structures for simple stack traces
Simple stack traces are captured through Isolate::CaptureSimpleStackTrace.
Captured frames are stored in a FixedArray, which in turn is stored as a
property (using a private symbol) on the error object itself. Actual formatting
of the textual stack trace is done lazily when the user reads the stack
property of the error object.

This would involve many conversions back and forth between index-encoded raw
data (receiver, function, offset and code), JS CallSite objects, and C++
CallSite objects.

This commit refactors the C++ CallSite class into a Struct class called
StackTraceFrame, which is the new single point of truth frame information.
Isolate::CaptureSimpleStackTrace stores an array of StackTraceFrames, and JS
CallSite objects (now created only when the user specifies custom stack trace
formatting through Error.prepareStackTrace) internally only store a reference
to a StackTraceFrame.

BUG=

Review-Url: https://codereview.chromium.org/2230953002
Cr-Commit-Position: refs/heads/master@{#38645}
2016-08-16 08:37:07 +00:00
..
libplatform [Tracing] Create TraceConfig JSON string parser in D8. 2016-08-10 17:11:08 +00:00
OWNERS Add myself to include/OWNERS 2015-04-21 10:05:59 +00:00
v8-debug.h [debugger] remove deprecated api functions. 2016-07-20 08:52:18 +00:00
v8-experimental.h Add faster, but unsafe version of LoadInternalField. 2016-08-10 11:54:11 +00:00
v8-platform.h [Tracing] Remove deprecated AddTraceEvent 2016-03-01 21:20:48 +00:00
v8-profiler.h Move SimulatorHelper into V8 out of profiler clients. 2016-08-10 17:12:27 +00:00
v8-testing.h Remove easy to remove calls to Isolate::Current() from api.cc 2015-11-30 08:16:59 +00:00
v8-util.h [API] Remove deprecated WeakCallbackData and related functions. 2016-05-06 13:18:07 +00:00
v8-version.h Update version to 5.4 2016-06-30 14:03:34 +00:00
v8.h Refactor data structures for simple stack traces 2016-08-16 08:37:07 +00:00
v8config.h Remove NaCl support. 2016-07-27 07:50:31 +00:00