WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137279
Fixed the Inspector to be able to properly distinguish between scope types
https://bugs.webkit.org/show_bug.cgi?id=137279
Summary
Fixed the Inspector to be able to properly distinguish between scope types
Mark Lam
Reported
2014-09-30 17:16:45 PDT
The pre-existing code incorrectly labels Catch Scopes and Function Name Scopes as With Scopes. This patch will fix this.
Attachments
the patch.
(15.39 KB, patch)
2014-09-30 17:27 PDT
,
Mark Lam
ggaren
: review-
Details
Formatted Diff
Diff
patch 2: rework JSNameScope to take an explicit type argument.
(30.92 KB, patch)
2014-10-01 14:59 PDT
,
Mark Lam
mark.lam
: review-
Details
Formatted Diff
Diff
patch 3: fixed ARM builds
(31.05 KB, patch)
2014-10-01 17:02 PDT
,
Mark Lam
ggaren
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2014-09-30 17:27:43 PDT
Created
attachment 238980
[details]
the patch.
WebKit Commit Bot
Comment 2
2014-09-30 17:29:20 PDT
Attachment 238980
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h:80: FUNCTION_NAME_SCOPE is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 3
2014-09-30 17:33:12 PDT
(In reply to
comment #2
)
> ERROR: Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h:80: FUNCTION_NAME_SCOPE is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] > Total errors found: 1 in 15 files
I named it FUNCTION_NAME_SCOPE to be consistent with its pre-existing peers. We can rename them all later if desired.
Geoffrey Garen
Comment 4
2014-10-01 11:39:33 PDT
Comment on
attachment 238980
[details]
the patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=238980&action=review
> Source/JavaScriptCore/runtime/JSNameScope.h:70 > + m_isCatchScope = !!(attributes & CatchScope);
It's a bad abstraction to use a property attribute to discover that an object is a catch scope. The two abstractions are unrelated, and relating them makes for spaghetti code. Instead, you should use an explicit parameter to the JSNameScope constructor. The VM knows when it allocates a catch scope, and it only does so in a few places.
Joseph Pecoraro
Comment 5
2014-10-01 11:48:02 PDT
Comment on
attachment 238980
[details]
the patch. You could add a test for this. Do we have any existing tests for Scope Chain? The inspector pieces look fine to me.
Mark Lam
Comment 6
2014-10-01 14:59:53 PDT
Created
attachment 239052
[details]
patch 2: rework JSNameScope to take an explicit type argument.
WebKit Commit Bot
Comment 7
2014-10-01 15:01:18 PDT
Attachment 239052
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h:80: FUNCTION_NAME_SCOPE is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 8
2014-10-01 15:41:12 PDT
Comment on
attachment 239052
[details]
patch 2: rework JSNameScope to take an explicit type argument. This breaks the ARMv7 build. Will fix and then post another patch.
Mark Lam
Comment 9
2014-10-01 17:02:55 PDT
Created
attachment 239069
[details]
patch 3: fixed ARM builds
WebKit Commit Bot
Comment 10
2014-10-01 17:04:32 PDT
Attachment 239069
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h:80: FUNCTION_NAME_SCOPE is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 11
2014-10-01 18:38:01 PDT
Comment on
attachment 239069
[details]
patch 3: fixed ARM builds r=me
Mark Lam
Comment 12
2014-10-02 08:17:02 PDT
Thanks for the reviews. Landed in
r174216
: <
http://trac.webkit.org/r174216
>.
Brent Fulgham
Comment 13
2014-10-06 09:53:57 PDT
This broke the 64-bit Windows build.
Brent Fulgham
Comment 14
2014-10-06 09:59:30 PDT
argumentGPR4 is not defined for 64-bit Windows. This is "regT6" on other platforms, but "regT6" is called "argumentGPR2" on Windows. How do we fix this? Should I roll it out?
Mark Lam
Comment 15
2014-10-06 13:04:04 PDT
(In reply to
comment #14
)
> argumentGPR4 is not defined for 64-bit Windows. This is "regT6" on other platforms, but "regT6" is called "argumentGPR2" on Windows.
I'll have a fix coming soon. Currently testing.
Mark Lam
Comment 16
2014-10-06 13:19:14 PDT
Build fix landed in
r174360
: <
http://trac.webkit.org/r174360
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug