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

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

Issue 10228001: Turn more explicitly named temps into uses of definitions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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/flow_graph_compiler_x64.cc ('k') | no next file » | 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 class ClosureCallComp : public Computation { 265 class ClosureCallComp : public Computation {
266 public: 266 public:
267 ClosureCallComp(ClosureCallNode* node, 267 ClosureCallComp(ClosureCallNode* node,
268 intptr_t try_index, 268 intptr_t try_index,
269 Value* context, 269 Value* context,
270 ZoneGrowableArray<Value*>* arguments) 270 ZoneGrowableArray<Value*>* arguments)
271 : ast_node_(*node), 271 : ast_node_(*node),
272 try_index_(try_index), 272 try_index_(try_index),
273 context_(context), 273 context_(context),
274 arguments_(arguments) { 274 arguments_(arguments) {
275 ASSERT(context->IsTemp()); 275 ASSERT(context->IsTemp() || context->IsUse());
276 } 276 }
277 277
278 DECLARE_COMPUTATION(ClosureCall) 278 DECLARE_COMPUTATION(ClosureCall)
279 279
280 const Array& argument_names() const { return ast_node_.arguments()->names(); } 280 const Array& argument_names() const { return ast_node_.arguments()->names(); }
281 intptr_t token_index() const { return ast_node_.token_index(); } 281 intptr_t token_index() const { return ast_node_.token_index(); }
282 intptr_t try_index() const { return try_index_; } 282 intptr_t try_index() const { return try_index_; }
283 283
284 Value* context() const { return context_; } 284 Value* context() const { return context_; }
285 intptr_t ArgumentCount() const { return arguments_->length(); } 285 intptr_t ArgumentCount() const { return arguments_->length(); }
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 const GrowableArray<BlockEntryInstr*>& block_order_; 1579 const GrowableArray<BlockEntryInstr*>& block_order_;
1580 1580
1581 private: 1581 private:
1582 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 1582 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
1583 }; 1583 };
1584 1584
1585 1585
1586 } // namespace dart 1586 } // namespace dart
1587 1587
1588 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 1588 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698