Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: src/fast-codegen.h

Issue 491077: Fast codegen: Implement with. (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/fast-codegen.cc » ('j') | src/fast-codegen.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/compiler.cc ('k') | src/fast-codegen.cc » ('j') | src/fast-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698