Closed Bug 459300 Opened 17 years ago Closed 17 years ago

JSON should use internal JS functions where it makes sense

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b2

People

(Reporter: sayrer, Assigned: sayrer)

Details

Attachments

(1 file)

No description provided.
I skipped a few that have macros as their body, will use the macros later if Shark shows call costs hurting.
Attachment #342503 - Flags: review?(brendan)
Comment on attachment 342503 [details] [diff] [review] switch to js_* functions >diff --git a/js/src/json.cpp b/js/src/json.cpp >--- a/js/src/json.cpp >+++ b/js/src/json.cpp >@@ -98,17 +98,17 @@ struct StringifyClosure > jsval *s; > }; > > static > JSBool WriteCallback(const jschar *buf, uint32 len, void *data) Nit, pre-existing: return type goes on same line as visibility/storage-class and other stuff including declarator mode. Looks good otherwise, thanks. /be
Attachment #342503 - Flags: review?(brendan) → review+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: