Commit Graph
1893 Commits
Author SHA1 Message Date
Matt Godbolt 285884eaef Moving compilation queue to ts (#4440)
* Moving compilation queue to ts
2023-01-23 20:25:15 -06:00
Matt Godbolt 6b487b04d5 Port csp.js to ts, remove _ dep (#4439) 2023-01-23 20:25:15 -06:00
Matt Godbolt c84b05763b Don't try and hack the compilation results (#4429)
* Don't try and hack the compilation results

Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.

This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.

I also took the time to fix the `CompilationResult`'s `buildResult`

Closes #4426
2023-01-23 20:25:15 -06:00
Patrick Quist 033238a2a4 min effort ts conv dropintool (#4412) 2023-01-23 20:25:15 -06:00
partouf 1871f316fd demangling fix 2023-01-23 20:25:15 -06:00
Patrick Quist e4c8870cd6 Support patched clang for faster opt-view (#4416) 2023-01-23 20:25:15 -06:00
Patrick Quist 6f007fc605 fix interpreting with multiple files (#4407) 2023-01-23 20:25:15 -06:00
Jeremy Rifkin 27247d41d1 Updated CompilerProps.get typing (#4397)
* Updated CompilerProps.get typing

* Get rid of two any casts in options-handler.ts

* Fixed mistaken types
2023-01-23 20:25:15 -06:00
Jeremy Rifkin f687a6b901 First pass ts conversion for lib/mapfiles (#4386) 2023-01-23 20:25:14 -06:00
Jeremy Rifkin 2a21aaf3e1 Tsify options-handler (#4396)
* First pass conversion of options-handler to ts

* Small tweaks

* Fix tests
2023-01-23 20:25:14 -06:00
Jeremy Rifkin c1ddb47971 Ts-ify objdumpers (#4385)
* Ts conversion for objdumpers

* Updated copyright years
2023-01-23 20:25:14 -06:00
Jeremy Rifkin 1270599987 Tsify compiler finder (#4390)
* Convert compiler-finder to ts

* Updated CompilerProps getter typings to be way more awesome

* A couple small tweaks

* Address review comments
2023-01-23 20:25:14 -06:00
Jeremy Rifkin bdb7400de9 Make the linter happy (#4393) 2023-01-23 20:25:14 -06:00
Jeremy Rifkin 042e30954c Converted argument-parsers to ts (#4389) 2023-01-23 20:25:14 -06:00
Jeremy Rifkin f212d60a42 Tsify generated asm docs (#4388)
* Converted amd64 docs to ts

* 6502

* 6502 part 2

* arm

* avr

* evm

* java

* llvm

* python

* Fix bug with only getting the first paragraph

* Updated help messages
2023-01-23 20:25:14 -06:00
Matt Godbolt 06935ef085 Ts-ify carbon (#4384) 2023-01-23 20:25:14 -06:00
Patrick Quist 863c704361 first bits of compiler interface (#4378) 2023-01-23 20:25:14 -06:00
Matt Godbolt defe456a59 AsmParser implements IAsmParser (#4382) 2023-01-23 20:25:14 -06:00
Matt Godbolt 1c265ec384 Port fortran.js to typescript (#4381)
* Port fortran.js to typescript
* @jeremy-rifkin suggestions
2023-01-23 20:25:14 -06:00
Jeremy Rifkin 1294c3f949 Control flow graph tool rework (#3899)
* Removed old code

* Base functionality

* Work on edge offsets

* Setup interval trees for edges

* linter things

* Formatting

* Added syntax highlighting

* Cleanup and simplification. Improved handling of direct dropdown edges.

* Basic zoom/pan

* Remove old blocks from output

* Fix distance calculation

* Added function selector

* Improved zoom behavior

* figue 8 logic

* Canvas scaling / repainting, updated colors

* Don't truncate output, also removed some console.logs

* Tweak to zoom system

* Replaced canvas stuff with svg

* Experimenting with adding shadows to edges

* Removed shadows, was causing problems. Improved how blocks with lots of incident edges are handled.

* Slightly improved edge system

* some work on implementing segment priority system from cutter

* Optimization to rendering process. I was worried the graph layout algorithm was causing the page to hang but it turns out it was adding elements to the page with +=

* Removed need for storing the previous segment

* refactor, splitting up some logic

* Cleaned up logic and got horizontal edges working better

* Remove vis-network dependency

* Updated package-lock, removed @import vis-network css stuff, added a todo for myself

* Cleaned up notes and error messages. Added comments. Clear the pane if there's no function to display

* Added layout time information, implemented .resize

* Light theme

* State work and bug fix for dragiing

* Re-dading lost dark theme changes

* Added jquery import

* Cleaned up console.logs

* Added basic block count

* Incorporated PR review comments; Fixed cypress (hopefully), added documentation, improved the dropdown, and fixed dropdown items not being cleared with an empty result.cfg

* Ran format
2022-11-29 22:28:10 -05:00
partouf 2455e412fa obsolete vars 2022-11-29 00:54:37 +01:00
partouf b6d459c9af format and lint 2022-11-28 23:29:38 +01:00
Patrick Quist 4f1bbcf526 .net - compileToBinary fix (#4353) 2022-11-28 23:13:01 +01:00
kasperk81 df607d5f6b dynamically set targetFramework (#4354) 2022-11-28 23:09:48 +01:00
Marc Poulhiès 2fa2bbb16a refactor: renames the CompilerFilters type (#4346)
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.

The type was already split, but the naming was not reflecting this in the other
part of the code.

This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').

While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-28 21:37:15 +01:00
Steve 75b9d30485 Support trunk and execution for .NET (#4351)
* Support trunk and execution for .NET
* Adjust compilers order
* Support stdin
* Update samples
2022-11-27 10:14:35 -06:00
Jeremy RifkinandMatt Godbolt e13fe4a2f9 Mg/props ts (#4340)
* WIP

* Type changes to the property getter

* Finish getting types working for properties.ts

* Reduce type casts in exec.ts

* Format files

* Remove old comment

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-11-26 13:56:04 -05:00
Ofek 21cb6f0fe5 Fix4312 (#4338)
* Fix #4312
2022-11-26 10:42:43 -06:00
Matt Godbolt e38d248aeb Fixes for .NET 7 (#4347)
- check return code of restore
- set env vars to prevent file size blowout
2022-11-26 10:42:24 -06:00
Steve 959822a74c Fix F# build failure (#4344)
* Fix FSharp compilation
2022-11-26 09:46:01 -06:00
Steve 0961116011 Fix crossgen2 arguments (#4342)
* Fix crossgen2 arguments
2022-11-25 17:48:26 -06:00
Matt Godbolt 065a166616 Work in progress on net .NET
- uses new installs
- works around issue where empty output would crash runCrossgen2

Not working yet (at least locally).
2022-11-25 08:03:30 -06:00
Steve 201f848b50 Update dotnet script (#4337)
* Uses new way to invoke compilers
* adds new
2022-11-25 07:39:10 -06:00
Matt Godbolt ee54aa914e Don't try and set up buildenv or external parser if remote (#4332)
* Don't try and set up buildenv or external parser if remote
2022-11-23 08:27:15 -06:00
Matt Godbolt f371b10324 Fail if compiler discovery fails (#4331)
* Fail if compiler discovery fails
2022-11-23 08:25:21 -06:00
Rubén Rincón Blanco f4d30924cd Fix error with null stderr (#4322)
* Fix error with null stderr

* Fix test
2022-11-22 15:05:37 +01:00
Matt Godbolt f276f73dab First pass at making compile.js into TS (#4313) 2022-11-22 07:27:43 -06:00
marcosmartinezfco fcb7683019 Add support for evm opcode documentation (#4319) 2022-11-21 17:16:15 +01:00
Patrick Quist c206b3cc9b separate llvmmos targets and nes emu (#4299) 2022-11-18 19:08:37 +01:00
Patrick Quist d180698be2 Fix4293 (#4298) 2022-11-17 17:32:46 +01:00
Rubén Rincón Blanco b67f5cfaa2 Fix Python argument order (#4295) 2022-11-17 15:20:12 +01:00
Rubén Rincón Blanco 61ff341caf Add Python instruction docs (#4290) 2022-11-16 00:51:37 +01:00
Patrick Quist 189d445363 store compilationOptions so that we can debug buildsteps better (#4288) 2022-11-13 19:39:17 +01:00
Rubén Rincón Blanco 423be5bdfe Fix execution for interpreted languages (#4289)
Types had a missmatch when they were interpreted
2022-11-13 18:59:01 +01:00
Matt Godbolt cfb3dc54c7 Sponsorship changes (#4274)
Rotate sponsors on the top of the page:
- `topIcon` -> `topIconShowEvery`
- `Sponsors` becomes an interface with methods to get levels, pick sponsors etc
- A somewhat acceptable algorithm for generating a "fair choice" of sponsors given the constraints:
  - "show at least 1 in N times"
  - don't unfairly show one sponsor more than any other at the same level
 - Sponsor icons are loaded dynamically via a "bits" handler (introducing a short delay in them appearing), but this means the index.html doesn't change on every load, so it's still cacheable
2022-11-13 10:35:39 -06:00
Jeremy Rifkin 1b37402cd9 Added llvm opt pipeline timing info (#4284)
* Added llvm opt pipeline timing info

* Fix naming

* Tweak timing pane and use exec's timing if possible

* Added timing info for processExecutionResult
2022-11-12 11:37:47 -05:00
Sebastian Büttner fef60ac025 Add missing data definition directives (fixes #4275) (#4277) 2022-11-12 09:04:38 +01:00
Rubén Rincón Blanco da7d22bef1 Set proper stubText type (#4270)
* Set proper stubText type

* Remove leftover newline
2022-11-12 04:46:18 +01:00
Jeremy Rifkin c2b3829883 Add stdout to the compilation error result (#4278) 2022-11-11 18:15:42 +01:00
Patrick Quist 17a56af696 Bugfix Map usage (#4265) 2022-11-09 14:08:19 +01:00