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

Unified Diff: vm/code_generator_x64.h

Issue 9721006: Second set of changes for implementation of stack map support. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 months 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 | « vm/code_generator_test.cc ('k') | vm/code_generator_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_generator_x64.h
===================================================================
--- vm/code_generator_x64.h (revision 5572)
+++ vm/code_generator_x64.h (working copy)
@@ -20,7 +20,9 @@
class Assembler;
class AstNode;
class CodeGenerator;
+class DescriptorList;
class SourceLabel;
+class StackmapBuilder;
class CodeGeneratorState : public StackResource {
@@ -64,9 +66,6 @@
class CodeGenerator : public AstNodeVisitor {
public:
- // Forward declarations.
- class DescriptorList;
-
CodeGenerator(Assembler* assembler, const ParsedFunction& parsed_function);
virtual ~CodeGenerator() { }
@@ -78,9 +77,6 @@
void GenerateCode();
virtual void GenerateDeferredCode();
- // Add local variable descriptors to code.
- void FinalizeVarDescriptors(const Code& code);
-
#define DEFINE_VISITOR_FUNCTION(type, name) \
virtual void Visit##type(type* node);
NODE_LIST(DEFINE_VISITOR_FUNCTION)
@@ -95,6 +91,12 @@
// Add pc descriptors to code.
void FinalizePcDescriptors(const Code& code);
+ // Add stack maps to code.
+ void FinalizeStackmaps(const Code& code);
+
+ // Add local variable descriptors to code.
+ void FinalizeVarDescriptors(const Code& code);
+
// Allocate and return an arguments descriptor.
// Let 'num_names' be the length of 'optional_arguments_names'.
// Treat the first 'num_arguments - num_names' arguments as positional and
@@ -213,6 +215,7 @@
intptr_t locals_space_size_;
CodeGeneratorState* state_;
DescriptorList* pc_descriptors_list_;
+ StackmapBuilder* stackmap_builder_;
HandlerList* exception_handlers_list_;
int try_index_;
// The runtime context level is only incremented when a new context is
« no previous file with comments | « vm/code_generator_test.cc ('k') | vm/code_generator_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698