Closed Bug 1207236 Opened 9 years ago Closed 9 years ago

ARM64: Build errors with --enable-simulator=arm64

Categories

(Core :: JavaScript Engine: JIT, defect)

ARM
Unspecified
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: victorcarlquist, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

Hi guys,
I'm getting the following errors with --enable-simulator=arm64:

In file included from /home/victor/Documentos/firefox/SpiderMonkey/js/src/_DBG_OBJ/js/src/Unified_cpp_js_src13.cpp:2:0:
/home/victor/Documentos/firefox/SpiderMonkey/js/src/vm/TaggedProto.cpp:8:1: error: ‘js’ has not been declared
 js::InternalGCMethods<TaggedProto>::preBarrier(TaggedProto& proto)
 ^
/home/victor/Documentos/firefox/SpiderMonkey/js/src/vm/TaggedProto.cpp:8:22: error: expected initializer before ‘<’ token
 js::InternalGCMethods<TaggedProto>::preBarrier(TaggedProto& proto)
                      ^
/home/victor/Documentos/firefox/SpiderMonkey/js/src/vm/TaggedProto.cpp:14:1: error: ‘js’ has not been declared
 js::InternalGCMethods<TaggedProto>::postBarrier(TaggedProto* vp, TaggedProto prev, TaggedProto next)
 ^
/home/victor/Documentos/firefox/SpiderMonkey/js/src/vm/TaggedProto.cpp:14:22: error: expected initializer before ‘<’ token
 js::InternalGCMethods<TaggedProto>::postBarrier(TaggedProto* vp, TaggedProto prev, TaggedProto next)
                      ^
make[3]: ** [Unified_cpp_js_src13.o] Erro 1
Blocks: 984018
Attached patch Patch (obsolete) — Splinter Review
Attachment #8664337 - Flags: review?(hv1989)
Comment on attachment 8664337 [details] [diff] [review]
Patch

Review of attachment 8664337 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!

::: js/src/vm/TaggedProto.cpp
@@ +5,5 @@
>   * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
>  
> +#include "TaggedProto.h"
> +
> +using namespace js;

can you do:

namespace js {

@@ +20,5 @@
>      JSObject* prevObj = prev.isObject() ? prev.toObject() : nullptr;
>      JSObject* nextObj = next.isObject() ? next.toObject() : nullptr;
>      InternalGCMethods<JSObject*>::postBarrier(reinterpret_cast<JSObject**>(vp), prevObj,
>                                                nextObj);
>  }

} // namespace js
Attachment #8664337 - Flags: review?(hv1989) → review+
Attached patch Patch (obsolete) — Splinter Review
Attachment #8664337 - Attachment is obsolete: true
Attachment #8664465 - Flags: review+
Attached patch PatchSplinter Review
The try is red because I forgot to add the "vm/" in the #include.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=48a8cbc7dd72
Attachment #8664465 - Attachment is obsolete: true
Attachment #8664492 - Flags: review+
Try is green (comment 5)!
Thanks for your review Hannes.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9048d24f6fd0
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
See Also: → 1207793
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: