summaryrefslogtreecommitdiff
path: root/yjit/src/core.rs
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-07-29 18:14:04 -0700
committerGitHub <[email protected]>2023-07-29 21:14:04 -0400
commitbde4080b3989b4f097371b5cadb82bf6cb7c45b1 (patch)
tree2563d717094f7db6458965810a833860febc5f04 /yjit/src/core.rs
parent087a2deccfb9d99961f1ce8526b80c5f72ee9a5d (diff)
YJIT: Drop Copy trait from Context (#8138)
Notes
Notes: Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit/src/core.rs')
-rw-r--r--yjit/src/core.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs
index b5a9d69205..97a84c6306 100644
--- a/yjit/src/core.rs
+++ b/yjit/src/core.rs
@@ -417,7 +417,7 @@ impl RegTemps {
/// Code generation context
/// Contains information we can use to specialize/optimize code
/// There are a lot of context objects so we try to keep the size small.
-#[derive(Clone, Copy, Default, Eq, Hash, PartialEq, Debug)]
+#[derive(Clone, Default, Eq, Hash, PartialEq, Debug)]
pub struct Context {
// Number of values currently on the temporary stack
stack_size: u8,
@@ -1567,6 +1567,10 @@ impl Context {
self.stack_size
}
+ pub fn set_stack_size(&mut self, stack_size: u8) {
+ self.stack_size = stack_size;
+ }
+
/// Create a new Context that is compatible with self but doesn't have type information.
pub fn get_generic_ctx(&self) -> Context {
let mut generic_ctx = Context::default();