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

Issue 14362015: WIP enum / V8PerContextData solution (Closed)

Created:
7 years, 8 months ago by johnjbarton
Modified:
7 years, 8 months ago
Reviewers:
Jakob Kummerow
CC:
blink-reviews, jamesr, yurys+blink_chromium.org, aandrey+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, abarth_chromum.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, caseq+blink_chromium.org, apavlov+blink_chromium.org, haraken, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

WIP Convert embedded debug data to enums/int in V8PerContextData Create enums characterizing the origin of JS source code (CompilationOriginCategory), the context where that source will be compiled (CompilationContextCategory), and restrictions on the result (CompilationRestrictions). Add enum values and the debugId integer in V8PerContextData. Add functions in V8PerContextDebugData to set initial CompilationOriginCategory and debugId. Create V8ScopedCompilation to mark and automatically unmark a context for use by the browser, eg debugging or extension API injection. (WIP) Use the new enums to set debug data into the V8 embedders data. BUG=226476

Patch Set 1 #

Patch Set 2 : Crash during GC #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -61 lines) Patch
M Source/bindings/v8/ScriptController.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptDebugServer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/ScriptDebugServer.cpp View 1 4 chunks +18 lines, -8 lines 0 comments Download
M Source/bindings/v8/V8DOMWindowShell.cpp View 1 chunk +1 line, -1 line 1 comment Download
M Source/bindings/v8/V8PerContextData.h View 1 4 chunks +14 lines, -16 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.cpp View 1 1 chunk +116 lines, -34 lines 0 comments Download
A Source/bindings/v8/V8PerContextDebugData.h View 1 1 chunk +130 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp View 1 chunk +5 lines, -0 lines 1 comment Download
M Source/bindings/v8/custom/V8InjectedScriptManager.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
johnjbarton
This patch crashes with STDERR: [0x000002635f18] base::debug::StackTrace::StackTrace() STDERR: [0x00000263581f] base::debug::(anonymous namespace)::StackDumpSignalHandler() STDERR: [0x7f9cc5a41cb0] <unknown> STDERR: ...
7 years, 8 months ago (2013-04-23 17:00:56 UTC) #1
johnjbarton
Crash solved. Makes me wonder if using V8PerContextData is such a great idea after all... ...
7 years, 8 months ago (2013-04-23 18:03:48 UTC) #2
Jakob Kummerow
I've noticed one more method that looks unsafe to me (see below). Generally, I'm not ...
7 years, 8 months ago (2013-04-24 12:20:04 UTC) #3
pfeldman
Is there anything other than preprocessor that would benefit of this change? Sounds like it ...
7 years, 8 months ago (2013-04-24 12:28:33 UTC) #4
johnjbarton
On 2013/04/24 12:28:33, pfeldman wrote: > Is there anything other than preprocessor that would benefit ...
7 years, 8 months ago (2013-04-24 15:00:28 UTC) #5
johnjbarton
7 years, 8 months ago (2013-04-24 23:21:35 UTC) #6
I found a different way to implement the preprocessor filter so I won't need
this CL.  Thanks for the feedback.

Powered by Google App Engine
This is Rietveld 408576698