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

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 315583002: First step in reducing the size of PC descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments, added arm64 file. Created 6 years, 6 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
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/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ASSERT(owner_->nesting_stack_ == this); 102 ASSERT(owner_->nesting_stack_ == this);
103 owner_->nesting_stack_ = outer_; 103 owner_->nesting_stack_ = outer_;
104 } 104 }
105 105
106 private: 106 private:
107 FlowGraphBuilder* owner_; 107 FlowGraphBuilder* owner_;
108 const SourceLabel* label_; 108 const SourceLabel* label_;
109 NestedStatement* outer_; 109 NestedStatement* outer_;
110 110
111 JoinEntryInstr* break_target_; 111 JoinEntryInstr* break_target_;
112 intptr_t try_index_; 112 const intptr_t try_index_;
113 }; 113 };
114 114
115 115
116 intptr_t NestedStatement::ContextLevel() const { 116 intptr_t NestedStatement::ContextLevel() const {
117 // Context level is determined by the innermost nested statement having one. 117 // Context level is determined by the innermost nested statement having one.
118 return (outer() == NULL) ? 0 : outer()->ContextLevel(); 118 return (outer() == NULL) ? 0 : outer()->ContextLevel();
119 } 119 }
120 120
121 121
122 intptr_t FlowGraphBuilder::context_level() const { 122 intptr_t FlowGraphBuilder::context_level() const {
(...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 LanguageError::kBailout, 3998 LanguageError::kBailout,
3999 Heap::kNew, 3999 Heap::kNew,
4000 "FlowGraphBuilder Bailout: %s %s", 4000 "FlowGraphBuilder Bailout: %s %s",
4001 String::Handle(I, function.name()).ToCString(), 4001 String::Handle(I, function.name()).ToCString(),
4002 reason)); 4002 reason));
4003 I->long_jump_base()->Jump(1, error); 4003 I->long_jump_base()->Jump(1, error);
4004 UNREACHABLE(); 4004 UNREACHABLE();
4005 } 4005 }
4006 4006
4007 } // namespace dart 4007 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698