Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-02-20 | AK: Use size_t for CircularQueue and CircularDeque | Andreas Kling | |
2020-02-20 | AK: Use size_t for ByteBuffer sizes | Andreas Kling | |
This matches what we already do for string types. | |||
2020-02-19 | AK: Fix bug where "%s" with field width would print too many characters | Andreas Kling | |
I introduced this while implementing "%.*s", oops. | |||
2020-02-19 | AK: Support "%.*s" in format strings | Andreas Kling | |
Work towards #623. | |||
2020-02-19 | AK: Use endianness flags to determine if conversion is necessary | Liav A | |
2020-02-18 | Kernel: Use a FixedArray for a process's extra GIDs | Andreas Kling | |
There's not really enough of these to justify using a HashTable. | |||
2020-02-18 | Kernel: Add placement new[] operator | Sergey Bugaev | |
2020-02-17 | Kernel: Replace "current" with Thread::current and Process::current | Andreas Kling | |
Suggested by Sergey. The currently running Thread and Process are now Thread::current and Process::current respectively. :^) | |||
2020-02-16 | AK: Add basic Traits for RefPtr | Andreas Kling | |
This allows RefPtr to be stored in a HashTable<RefPtr<T>> :^) It's unfortunate about the const_casts. We'll need to fix HashMap::get to play nice with non-const Traits<T>::PeekType at some point. | |||
2020-02-16 | AK: Don't construct a String every time we LogStream<< a number | Andreas Kling | |
2020-02-16 | AK: Fixed a typo in NeverDestroyed.h (#1228) | Kaif Mavani | |
2020-02-16 | AK: Add HashMap, HashTable and Traits to Forward.h | Andreas Kling | |
2020-02-16 | Kernel: Move all code into the Kernel namespace | Andreas Kling | |
2020-02-16 | AK: Add missing include in CircularQueue.h | Andreas Kling | |
2020-02-15 | AK: Don't bring in LibBareMetal's kstdio.h in userspace | Andreas Kling | |
2020-02-15 | AK: Make sure that Weakable always has the same memory layout | Andreas Kling | |
Weakable objects ended up with differing memory layouts in some ports since they don't build with the DEBUG macro defined. Instead of forcing ports to define DEBUG, just put this behind a custom WEAKABLE_DEBUG macro and leave it always-on for now. | |||
2020-02-15 | AK: Fix broken #include statement | Andreas Kling | |
2020-02-15 | AK: Add BufferStream to Forward.h | Andreas Kling | |
2020-02-15 | AK: Add String starts_with(char) & ends_with(char) | Shannon Booth | |
This is simply meant to be a more efficient implementation in the case that we only need to check a single character. | |||
2020-02-14 | AK: Add Utf8View to Forward.h | Andreas Kling | |
2020-02-14 | AK: Add LogStream and DebugLogStream to Forward.h | Andreas Kling | |
2020-02-14 | AK: Add SharedBuffer to Forward.h | Andreas Kling | |
2020-02-14 | LibCore: Add a forward declaration header | Andreas Kling | |
This patch adds <LibCore/Forward.h> and uses it in various places to shrink the header dependency graph. | |||
2020-02-14 | AK: Add a forward declaration header | Andreas Kling | |
You can now #include <AK/Forward.h> to get most of the AK types as forward declarations. Header dependency explosion is one of the main contributors to compile times at the moment, so this is a step towards smaller include graphs. | |||
2020-02-13 | AK: Move escape_html_entities() from LibHTML to AK | Andreas Kling | |
This sort of thing can be useful to things that don't want to link with all of LibHTML. | |||
2020-02-10 | AK: Remove bitrotted Traits::dump() mechanism | Andreas Kling | |
This was only used by HashTable::dump() which I used when doing the first HashTable implementation. Removing this allows us to also remove most includes of <AK/kstdio.h>. | |||
2020-02-09 | AK: Apply changes for the Bootstrapper environment | Liav A | |
2020-02-09 | AK: Make StringBuilder::to_string() non-destructive | Andreas Kling | |
This was an artifact of an earlier design of StringBuilder where I had attempted to preserve the same allocation from build to final String. | |||
2020-02-08 | AK: Add JsonObjectSerializer::add(key, bool) overload | Andreas Kling | |
Without this, bools will get implicitly converted to integers, which is usually not what we want. | |||
2020-02-08 | AK: Make PrintfImplementation treat %lld as 64-bit | Andreas Kling | |
2020-02-08 | AK: Add LogStream overloads for long and long long | Andreas Kling | |
2020-02-06 | AK: Add some missing "inline" keywords in JsonObject.h | Andreas Kling | |
2020-02-06 | AK: Add missing StdLibExtras.h include in Optional.h | Andreas Kling | |
2020-02-05 | AK+IPCCompiler: Get rid of BufferStream overloads for size_t | Andreas Kling | |
Since BufferStream is about creating specific binary stream formats, let's not have a flaky type like size_t in there. Instead, clients of BufferStream can cast their size_t to the binary size they want to use. Account for this in IPCCompiler by making String lengths always 32-bit. | |||
2020-02-05 | AK: Break LogStream::operator<< overloads into i/l/ll and u/ul/ull | Andreas Kling | |
2020-02-05 | AK: Break String::number() overloads into i/l/ll and u/ul/ull | Andreas Kling | |
Now that we're trying to be more portable, we can't only rely on using i32/u32 and i64/u64 since different systems have different combinations of int/long/long long and unsigned/unsigned long/unsigned long long. | |||
2020-02-05 | AK: Support 64-bit integers in BufferStream | joshua stein | |
2020-02-05 | AK: Add support for 64-bit size_t | joshua stein | |
2020-02-03 | AK: The <cxxabi.h> header is not available during Toolchain build | Andreas Kling | |
This will need some refinement, but basically since we build LibC during the toolchain build, we don't have libstdc++ headers yet. | |||
2020-02-02 | AK: Turn demangling back on for userspace | Andreas Kling | |
This didn't work at some point, but now it apparently works again. :^) | |||
2020-02-01 | AK: #ifdef out the contents of SharedBuffer on other platforms | Andreas Kling | |
2020-02-01 | AK: Always inline StringView(const char*) | Andreas Kling | |
Also use strlen() instead of manually walking the string. This allows GCC to optimize away the strlen() entirely for string literals. :^) | |||
2020-02-01 | AK: Add some integer overloads to JsonObjectSerializer | Andreas Kling | |
This avoids constructing a temporary JsonValue just to append an int. | |||
2020-01-31 | AK: Add FixedArray::data() | William McPherson | |
2020-01-26 | Ext2FS: allocate_blocks allocates contiguous blocks (#1095) | Marios Prokopakis | |
This implementation uses the new helper method of Bitmap called find_longest_range_of_unset_bits. This method looks for the biggest range of contiguous bits unset in the bitmap and returns the start of the range back to the caller. | |||
2020-01-25 | Build: Remove -fno-sized-deallocation -Wno-sized-deallocation | Andreas Kling | |
Add sized variants of the global operator delete functions so we don't have to use these GCC options anymore. | |||
2020-01-25 | AK: Vector::is_null() should always return false | Andreas Kling | |
This is only used by the somewhat dubious templated String::copy(). An empty Vector should generate an empty String when copied, never a null String. | |||
2020-01-25 | AK: Assert if trying to create a WeakPtr to an object being destroyed | Andreas Kling | |
Trying to make_weak_ptr() on something that has begun destruction is very unlikely to be what you want. Let's assert if that scenario comes up so we can catch it immediately. | |||
2020-01-24 | Meta: Claim copyright for files created by me | Sergey Bugaev | |
This changes copyright holder to myself for the source code files that I've created or have (almost) completely rewritten. Not included are the files that were significantly changed by others even though it was me who originally created them (think HtmlView), or the many other files I've contributed code to. | |||
2020-01-24 | AK: Use swap-based assignment in OwnPtr | Andreas Kling | |
Also provide a specialized swap(OwnPtr, OwnPtr) that allows swapping an OwnPtr with itself. |