1
0
Fork 0
forked from koniifer/ableos

tests pass again

This commit is contained in:
mlokr 2024-06-23 09:09:33 +02:00
parent e0cdde2c85
commit fe73f2d70f
13 changed files with 2486 additions and 4666 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,6 @@
#![feature(vec_pop_if)] #![feature(vec_pop_if)]
#![feature(new_uninit)]
#![feature(anonymous_lifetime_in_impl_trait)]
#![feature(inline_const_pat)] #![feature(inline_const_pat)]
#![feature(pattern)] #![feature(pattern)]
#![feature(if_let_guard)] #![feature(if_let_guard)]

View file

@ -7,7 +7,7 @@ use std::{
}; };
use crate::{ use crate::{
codegen::bt, codegen,
ident::{self, Ident}, ident::{self, Ident},
lexer::{Lexer, LineMap, Token, TokenKind}, lexer::{Lexer, LineMap, Token, TokenKind},
log, log,
@ -166,7 +166,7 @@ impl<'a, 'b> Parser<'a, 'b> {
let is_ct = self.token.kind == TokenKind::CtIdent; let is_ct = self.token.kind == TokenKind::CtIdent;
let name = self.lexer.slice(token.range()); let name = self.lexer.slice(token.range());
if let Some(builtin) = bt::from_str(name) { if let Some(builtin) = codegen::ty::from_str(name) {
return (builtin, 0); return (builtin, 0);
} }

View file

@ -1,3 +1,3 @@
code size: 471 code size: 522
ret: 512 ret: 512
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 359 code size: 318
ret: 69 ret: 69
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 283 code size: 277
ret: 50 ret: 50
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 265 code size: 262
ret: 55 ret: 55
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 322 code size: 330
ret: 0 ret: 0
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 778 code size: 786
ret: 10 ret: 10
status: Ok(()) status: Ok(())

View file

@ -1,3 +1,3 @@
code size: 417 code size: 460
ret: 3 ret: 3
status: Ok(()) status: Ok(())

View file

@ -10,7 +10,7 @@
// - Instructions have to be valid as specified (values and sizes) // - Instructions have to be valid as specified (values and sizes)
// - Mapped pages should be at least 4 KiB // - Mapped pages should be at least 4 KiB
#![no_std] //#![no_std]
#![cfg_attr(feature = "nightly", feature(fn_align))] #![cfg_attr(feature = "nightly", feature(fn_align))]
#![deny(unsafe_op_in_unsafe_fn)] #![deny(unsafe_op_in_unsafe_fn)]