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

Side by Side Diff: vm/flow_graph_compiler_x64.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/flow_graph_compiler_x64.h ('k') | vm/object.h » ('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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
11 #include "vm/code_descriptors.h"
11 #include "vm/code_generator.h" 12 #include "vm/code_generator.h"
12 #include "vm/disassembler.h" 13 #include "vm/disassembler.h"
13 #include "vm/longjump.h" 14 #include "vm/longjump.h"
14 #include "vm/object_store.h" 15 #include "vm/object_store.h"
15 #include "vm/parser.h" 16 #include "vm/parser.h"
16 #include "vm/stub_code.h" 17 #include "vm/stub_code.h"
17 18
18 namespace dart { 19 namespace dart {
19 20
20 DECLARE_FLAG(bool, print_ast); 21 DECLARE_FLAG(bool, print_ast);
21 DECLARE_FLAG(bool, print_scopes); 22 DECLARE_FLAG(bool, print_scopes);
22 DECLARE_FLAG(bool, trace_functions); 23 DECLARE_FLAG(bool, trace_functions);
23 24
24 FlowGraphCompiler::FlowGraphCompiler( 25 FlowGraphCompiler::FlowGraphCompiler(
25 Assembler* assembler, 26 Assembler* assembler,
26 const ParsedFunction& parsed_function, 27 const ParsedFunction& parsed_function,
27 const GrowableArray<BlockEntryInstr*>* blocks) 28 const GrowableArray<BlockEntryInstr*>* blocks)
28 : assembler_(assembler), 29 : assembler_(assembler),
29 parsed_function_(parsed_function), 30 parsed_function_(parsed_function),
30 blocks_(blocks), 31 blocks_(blocks),
31 block_info_(blocks->length()), 32 block_info_(blocks->length()),
32 current_block_(NULL), 33 current_block_(NULL),
33 pc_descriptors_list_(new CodeGenerator::DescriptorList()) { 34 pc_descriptors_list_(new DescriptorList()) {
34 for (int i = 0; i < blocks->length(); ++i) { 35 for (int i = 0; i < blocks->length(); ++i) {
35 block_info_.Add(new BlockInfo()); 36 block_info_.Add(new BlockInfo());
36 } 37 }
37 } 38 }
38 39
39 40
40 FlowGraphCompiler::~FlowGraphCompiler() { 41 FlowGraphCompiler::~FlowGraphCompiler() {
41 // BlockInfos are zone-allocated, so their destructors are not called. 42 // BlockInfos are zone-allocated, so their destructors are not called.
42 // Verify the labels explicitly here. 43 // Verify the labels explicitly here.
43 for (int i = 0; i < block_info_.length(); ++i) { 44 for (int i = 0; i < block_info_.length(); ++i) {
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { 1199 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
1199 // We don't compile exception handlers yet. 1200 // We don't compile exception handlers yet.
1200 code.set_exception_handlers( 1201 code.set_exception_handlers(
1201 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); 1202 ExceptionHandlers::Handle(ExceptionHandlers::New(0)));
1202 } 1203 }
1203 1204
1204 1205
1205 } // namespace dart 1206 } // namespace dart
1206 1207
1207 #endif // defined TARGET_ARCH_X64 1208 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « vm/flow_graph_compiler_x64.h ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698