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

Side by Side Diff: runtime/vm/flow_graph_compiler.h

Issue 1054393003: Compress deopt instructions in memory using variable length encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: landing Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Environment* deopt_env) 119 Environment* deopt_env)
120 : pc_offset_(-1), 120 : pc_offset_(-1),
121 deopt_id_(deopt_id), 121 deopt_id_(deopt_id),
122 reason_(reason), 122 reason_(reason),
123 flags_(flags), 123 flags_(flags),
124 deopt_env_(deopt_env) { 124 deopt_env_(deopt_env) {
125 ASSERT(deopt_env != NULL); 125 ASSERT(deopt_env != NULL);
126 } 126 }
127 virtual ~CompilerDeoptInfo() { } 127 virtual ~CompilerDeoptInfo() { }
128 128
129 RawDeoptInfo* CreateDeoptInfo(FlowGraphCompiler* compiler, 129 RawTypedData* CreateDeoptInfo(FlowGraphCompiler* compiler,
130 DeoptInfoBuilder* builder, 130 DeoptInfoBuilder* builder,
131 const Array& deopt_table); 131 const Array& deopt_table);
132 132
133 133
134 // No code needs to be generated. 134 // No code needs to be generated.
135 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix) {} 135 virtual void GenerateCode(FlowGraphCompiler* compiler, intptr_t stub_ix) {}
136 136
137 intptr_t pc_offset() const { return pc_offset_; } 137 intptr_t pc_offset() const { return pc_offset_; }
138 void set_pc_offset(intptr_t offset) { pc_offset_ = offset; } 138 void set_pc_offset(intptr_t offset) { pc_offset_ = offset; }
139 139
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 const Array* inlined_code_intervals_; 711 const Array* inlined_code_intervals_;
712 const GrowableArray<const Function*>& inline_id_to_function_; 712 const GrowableArray<const Function*>& inline_id_to_function_;
713 const GrowableArray<intptr_t>& caller_inline_id_; 713 const GrowableArray<intptr_t>& caller_inline_id_;
714 714
715 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 715 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
716 }; 716 };
717 717
718 } // namespace dart 718 } // namespace dart
719 719
720 #endif // VM_FLOW_GRAPH_COMPILER_H_ 720 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698