Closed Bug 1395580 Opened 6 years ago Closed 6 years ago

Making a small change in /js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp breaks the parser

Categories

(Core :: JavaScript Engine: JIT, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(1 file)

Writing this patch breaks the config/check_macroassembler_style.py parser:

diff --git a/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp b/js/src/jit/x8
--- a/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp
+++ b/js/src/jit/x86-shared/MacroAssembler-x86-shared.cpp
@@ -406,18 +406,17 @@ MacroAssemblerX86Shared::minMaxFloat32(F
 }
 
 //{{{ check_macroassembler_style
 // ===============================================================
 // MacroAssembler high-level usage.
 
 void
 MacroAssembler::flush()
-{
-}
+{}
 
 void
 MacroAssembler::comment(const char* msg)
 {
     masm.comment(msg);
 }
 
 // ===============================================================


-----
-- check_macroassembler_style.py declared syntax
+++ check_macroassembler_style.py found definitions
@@ -1365,10 +1365,9 @@
     is defined in arm64/MacroAssembler-arm64.cpp
     is defined in x64/MacroAssembler-x64.cpp
     is defined in x86/MacroAssembler-x86.cpp
-void comment(const char*) PER_SHARED_ARCH;
-    is defined in arm/MacroAssembler-arm.cpp
-    is defined in arm64/MacroAssembler-arm64.cpp
-    is defined in x86-shared/MacroAssembler-x86-shared.cpp
+void comment(const char*) DEFINED_ON(arm, arm64);
+    is defined in arm/MacroAssembler-arm.cpp
+    is defined in arm64/MacroAssembler-arm64.cpp
 void flush() PER_SHARED_ARCH;
     is defined in arm/MacroAssembler-arm.cpp
     is defined in arm64/MacroAssembler-arm64.cpp
Flags: needinfo?(nicolas.b.pierron)
Priority: -- → P3
From what I understand, this would be a priority for 58, as this would be blocking the reformatting of the code base.

This should be a minor change in ./config/check_macroassembler_style.py
Blocks: 1400283
Comment on attachment 8908672 [details]
Bug 1395580 - check_macroassembler_style.py - Also manage the coding style {} for function declarations

https://reviewboard.mozilla.org/r/180312/#review185508
Attachment #8908672 - Flags: review?(nicolas.b.pierron) → review+
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/07c412e7cdf0
check_macroassembler_style.py - Also manage the coding style {} for function declarations r=nbp
https://hg.mozilla.org/mozilla-central/rev/07c412e7cdf0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Assignee: nobody → sledru
Flags: needinfo?(nicolas.b.pierron)
You need to log in before you can comment on or make changes to this bug.