Index: src/fast-codegen.h |
diff --git a/src/fast-codegen.h b/src/fast-codegen.h |
index 38588d159389acbc471525b8127f76d286385239..3d7a039900db0cb28e50505550ad760005ee6ddd 100644 |
--- a/src/fast-codegen.h |
+++ b/src/fast-codegen.h |
@@ -291,6 +291,15 @@ class FastCodeGenerator: public AstVisitor { |
MacroAssembler* masm() { return masm_; } |
static Register result_register(); |
+ static Register context_register(); |
Kevin Millikin (Chromium)
2009/12/14 16:35:47
This seems like going overboard to avoid platform-
Lasse Reichstein
2009/12/16 13:40:31
The context_register() function is used in generic
|
+ |
+ // Set fields in the stack frame. Offsets are the ones defined in, e.g., |
+ // StandardFrameConstants. |
+ void StoreFrameField(int frame_offset, Register value); |
Kevin Millikin (Chromium)
2009/12/14 16:35:47
Not all of the constants in frames-{arm,ia32,x64}.
Lasse Reichstein
2009/12/16 13:40:31
Will mention exceptions and change name to StoreTo
|
+ |
+ // Load a value from the current context. Indices are defined as an enum |
+ // in v8::internal::Context. |
+ void LoadContextField(Register dst, int context_index); |
Kevin Millikin (Chromium)
2009/12/14 16:35:47
We have a lot of uses of this (or a similar) patte
Lasse Reichstein
2009/12/16 13:40:31
I actually think ContextOperand is the correct lev
|
// AST node visit functions. |
#define DECLARE_VISIT(type) virtual void Visit##type(type* node); |