Matt Brubeck
13072c7b0c
Remove string_cache dependency from util.
...
Move `namespace::from_domstring` from util to script::dom, because it is used
only in that crate.
2015-07-01 10:04:53 -07:00
Matt Brubeck
efa60d3a24
Remove unused dependencies from util
2015-07-01 09:40:33 -07:00
Matt Brubeck
8570b22677
Remove layers dependency from util
2015-07-01 09:40:32 -07:00
Ms2ger
41da4fceee
Remove the data field from WorkQueue.
...
It is only used in the run method.
2015-06-29 15:09:29 +02:00
Ms2ger
b2c226afe6
Move back to using a labeled break in WorkQueue.
...
This was changed in 18a2050a64
; it appears to
work fine now.
2015-06-27 22:10:40 +02:00
Ms2ger
0d0c8f2d42
Use an atomic bool for EXPERIMENTAL_ENABLED.
...
static mut smells, especially as it can be set and read from multiple threads
(for example in unit tests).
2015-06-27 09:06:45 +02:00
Ms2ger
079049cfac
Stop using the deprecated Thunk API.
2015-06-26 22:45:32 +02:00
Ms2ger
d7c0d65cc4
Stop using env::set_exit_code.
2015-06-26 19:46:16 +02:00
Ms2ger
73a7e92bfd
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
2015-06-25 20:02:36 +02:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Simon Sapin
0229de822b
Use string-cache from crates.io
2015-06-16 00:27:50 +02:00
bors-servo
d6263c9b6e
Auto merge of #6306 - metajack:shared-target-dir, r=mbrubeck
...
This speeds up `./mach build --dev` followed by `./mach build-cef` by
25%. When rust-lang/cargo#497 is fixed, this speedup will increase
dramatically.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6306 )
<!-- Reviewable:end -->
2015-06-15 13:08:14 -06:00
Jack Moffitt
a0237085c6
Use Cargo's target directory sharing.
...
This speeds up `./mach build --dev` followed by `./mach build-cef` by a
large amount, and also speeds up other build combos found in our CI.
2015-06-15 11:48:47 -06:00
Corey Farwell
5c408d2be9
rust-geom API changes
...
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00
Patrick Walton
eef9c5d9bf
layout: Disable parallel display list building by default.
...
I've never see it result in a speedup. Actually, I don't think I've seen
it result in anything better than a 50% slowdown. The arithmetic
intensity is just too low, at least with the current algorithm.
Parallel DL building can still be enabled with a debug flag if the
algorithm is improved.
2015-06-12 18:03:58 -07:00
bors-servo
f03f584895
Auto merge of #6334 - nnethercote:report-local-contexts, r=pcwalton
...
Passing a function that measures TLS to WorkQueue is a bit weird, but I can't see how else to measure that data.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6334 )
<!-- Reviewable:end -->
2015-06-12 18:42:32 -06:00
bors-servo
9ea50957fc
Auto merge of #6345 - pcwalton:workqueue-arm-optzns, r=glennw
...
Improves scaling on multicore ARM devices.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6345 )
<!-- Reviewable:end -->
2015-06-12 07:28:19 -06:00
Patrick Walton
a063fdde73
util: Reduce memory barriers and integer divisions in the work queue.
...
Improves scaling on multicore ARM devices.
2015-06-11 15:07:16 -07:00
Nicholas Nethercote
48a0725c01
Measure LocalLayoutContexts in LayoutTask and LayoutWorkers.
...
The FreeType instances in layout workers are reasonably large and worth
measuring. The one in LayoutTask is smaller but it's easy to measure at the
same time. Sample output:
```
| 8.33 MiB -- pages
| 8.33 MiB -- url(file:///home/njn/moz/servo/../servo-static-suite/wikipedia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyclopedia.html)
| 1.32 MiB -- layout-worker-0-local-context
| 1.31 MiB -- layout-worker-1-local-context
| 1.24 MiB -- layout-worker-3-local-context
| 1.17 MiB -- layout-worker-4-local-context
| 1.08 MiB -- layout-worker-2-local-context
| 1.06 MiB -- layout-worker-5-local-context
| 0.78 MiB -- paint-task
| 0.78 MiB -- buffer-map
| 0.38 MiB -- layout-task
| 0.30 MiB -- display-list
| 0.07 MiB -- local-context
```
This required adding a mechanism to WorkQueue to measure worker TLSes.
2015-06-10 21:06:59 -07:00
Glenn Watson
899ab226de
Updates for changes in rust-geom and rust-layers
2015-06-11 07:19:58 +10:00
Patrick Walton
e42011cd53
Revert "Updates for changes in rust-geom and rust-layers"
2015-06-10 14:14:51 -07:00
Patrick Walton
053296e131
Merge pull request #6329 from glennw/remove-generic
...
Updates for changes in rust-geom and rust-layers
2015-06-10 14:14:24 -07:00
Glenn Watson
8fb29c91e6
Updates for changes in rust-geom and rust-layers
2015-06-11 07:05:56 +10:00
bors-servo
35000a9b85
Auto merge of #6317 - frewsxcv:rm-util-crate-reexports, r=Ms2ger
...
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.
These indirect dependencies through the util component are unnecessary.
This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6317 )
<!-- Reviewable:end -->
2015-06-10 08:23:11 -06:00
Corey Farwell
4f47b41fa7
Remove fnv & smallvec crate reexports from util
...
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.
These indirect dependencies through the util component are unnecessary.
This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.
2015-06-10 07:14:55 -07:00
Ms2ger
5149f0e953
Remove null_str_as_empty and null_str_as_empty_ref functions.
...
With just one caller between the two functions, there doesn't seem to be
much point in having the abstraction.
2015-06-10 13:36:51 +02:00
Manish Goregaokar
162ec5da5d
Audit and reduce unstable usage in script
...
Reasons behind existing unstable features:
alloc / OIBIT : For deque (which was just copied from rust's source)
collections:
- `[T].tail()`
- `to_lowercase()`
core:
- `FnBox`
- `intrinsics::breakpoint()`
exit_status: for setting exit status
path_ext: for `is_dir` and `exists()` (can be done in other ways)
step_by/step_trait
std_misc:
- Thunk
- DefaultState and other hasher stuff
zero_one: `num::One`
2015-06-10 01:43:44 +05:30
bors-servo
1c636dd2d0
Auto merge of #6310 - frewsxcv:rm-unused-file, r=Manishearth
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6310 )
<!-- Reviewable:end -->
2015-06-08 23:29:47 -05:00
Corey Farwell
cf20c89224
Remove unused file: components/util/fnv.rs
2015-06-08 19:22:38 -07:00
Eduard Burtescu
00e8e5f77d
Use the correct log crate and setup env_logger in main.
2015-06-06 23:20:40 +03:00
Matt Brubeck
76cf5bb45a
Give a useful error when passed a non-existant file
2015-06-04 13:52:22 -07:00
Manish Goregaokar
d347aeda38
fix rebase conflicts
2015-06-03 09:56:43 +05:30
Manish Goregaokar
13b4bcfbb7
Remove all Arc-less ignores, force reasons, ignore_heap_size_of
2015-06-03 07:14:21 +05:30
Manish Goregaokar
5447d2af3d
remove more heapsize ignores
2015-06-03 07:14:20 +05:30
Manish Goregaokar
a5975e8f33
use knownheapsize for geom stuff
2015-06-03 07:14:18 +05:30
Manish Goregaokar
c1daf889af
use HeapSizeOf plugin in gfx
2015-06-03 07:13:40 +05:30
Manish Goregaokar
f4bc92526a
Add #[heapsize]/#[derive(HeapSizeOf)] plugin to auto-derive HeapSizeOf
impls
...
(fixes #5914 )
2015-06-03 07:12:00 +05:30
Manish Goregaokar
f80f99fe1e
Move to latest hyper everywhere
2015-06-02 20:12:14 +05:30
Matt Brubeck
b78b33b7f5
Change not(ndebug) to debug_assertions
...
The name of this directive changed in rust-lang/rust#22980 .
2015-06-01 13:48:38 -07:00
Mátyás Mustoha
322fd5ad9d
Add disable-canvas-aa option to test runner.
2015-05-28 11:10:58 +02:00
Mike Blumenkrantz
b1ae5e7523
make Opts.url an Option<> type, only emit initial url load if url exists
...
this is a necessary change for embedded apps to prevent an initial about:blank
page load from overwriting whatever the app was actually trying to load
2015-05-27 14:45:57 -04:00
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00
Patrick Walton
1a3395e077
script: Implement the width
and height
attributes for iframes per
...
HTML5 § 4.8.6.
Improves Amazon and Ars Technica.
2015-05-20 11:15:25 -07:00
bors-servo
c51e9f0455
Auto merge of #6131 - glennw:jquery-exit-fix, r=jdm
...
This fixes a hang found while testing the jQuery test suite.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6131 )
<!-- Reviewable:end -->
2015-05-19 21:44:45 -05:00
Glenn Watson
35a570ab66
Fix several hangs / panics during pipeline cleanup of in progress loads.
...
This fixes a hang found while testing the jQuery test suite.
2015-05-19 16:14:25 +10:00
Matt Brubeck
0048b4f2ab
Positioning fixes for RTL floats
2015-05-18 17:25:06 -07:00
Patrick Walton
a0980091cf
gfx: Implement paint flashing, which will be useful for debugging
...
invalidation.
2015-05-14 15:45:41 -07:00
Adenilson Cavalcanti
37b6eeddff
Removing unused start up parameter.
...
Seems to be a left over from quite some time ago.
2015-05-12 14:41:08 -07:00
Mike Blumenkrantz
ac6aa9b8b7
when finding resource_dir, try exe launch directory
...
external apps using servo may just have the resources/ in the same place
2015-05-12 13:45:49 -04:00
Brian Anderson
df9c132551
util: Set the experimental_enabled flag when options are set
2015-05-09 02:22:59 -07:00