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

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

Issue 1124963002: Share code for building recognized native getters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | « no previous file | runtime/vm/flow_graph_builder.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_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 void AddReturnExit(intptr_t token_pos, Value* value); 348 void AddReturnExit(intptr_t token_pos, Value* value);
349 349
350 protected: 350 protected:
351 Definition* BuildStoreTemp(const LocalVariable& local, Value* value); 351 Definition* BuildStoreTemp(const LocalVariable& local, Value* value);
352 Definition* BuildStoreExprTemp(Value* value); 352 Definition* BuildStoreExprTemp(Value* value);
353 Definition* BuildLoadExprTemp(); 353 Definition* BuildLoadExprTemp();
354 354
355 Definition* BuildStoreLocal(const LocalVariable& local, Value* value); 355 Definition* BuildStoreLocal(const LocalVariable& local, Value* value);
356 Definition* BuildLoadLocal(const LocalVariable& local); 356 Definition* BuildLoadLocal(const LocalVariable& local);
357 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope); 357 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope);
358 LoadFieldInstr* BuildNativeGetter(
359 NativeBodyNode* node,
360 MethodRecognizer::Kind kind,
361 intptr_t offset,
362 const Type& type,
363 intptr_t class_id);
358 364
359 // Helpers for translating parts of the AST. 365 // Helpers for translating parts of the AST.
360 void BuildPushArguments(const ArgumentListNode& node, 366 void BuildPushArguments(const ArgumentListNode& node,
361 ZoneGrowableArray<PushArgumentInstr*>* values); 367 ZoneGrowableArray<PushArgumentInstr*>* values);
362 368
363 // Creates an instantiated type argument vector used in preparation of an 369 // Creates an instantiated type argument vector used in preparation of an
364 // allocation call. 370 // allocation call.
365 // May be called only if allocating an object of a parameterized class. 371 // May be called only if allocating an object of a parameterized class.
366 Value* BuildInstantiatedTypeArguments( 372 Value* BuildInstantiatedTypeArguments(
367 intptr_t token_pos, 373 intptr_t token_pos,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // Output parameters. 619 // Output parameters.
614 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 620 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
615 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 621 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
616 622
617 intptr_t condition_token_pos_; 623 intptr_t condition_token_pos_;
618 }; 624 };
619 625
620 } // namespace dart 626 } // namespace dart
621 627
622 #endif // VM_FLOW_GRAPH_BUILDER_H_ 628 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698