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

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

Issue 695483003: Remove saving/restoring of the context at function entry. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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/debugger_x64.cc ('k') | 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 bool result_is_needed); 400 bool result_is_needed);
401 401
402 StrictCompareInstr* BuildStrictCompare(AstNode* left, 402 StrictCompareInstr* BuildStrictCompare(AstNode* left,
403 AstNode* right, 403 AstNode* right,
404 Token::Kind kind, 404 Token::Kind kind,
405 intptr_t token_pos); 405 intptr_t token_pos);
406 406
407 virtual void BuildTypeTest(ComparisonNode* node); 407 virtual void BuildTypeTest(ComparisonNode* node);
408 virtual void BuildTypeCast(ComparisonNode* node); 408 virtual void BuildTypeCast(ComparisonNode* node);
409 409
410 bool MustSaveRestoreContext(SequenceNode* node) const; 410 bool HasContextScope() const;
411 411
412 // Moves the nth parent context into the context register. 412 // Moves the nth parent context into the context register.
413 void UnchainContexts(intptr_t n); 413 void UnchainContexts(intptr_t n);
414 414
415 void CloseFragment() { exit_ = NULL; } 415 void CloseFragment() { exit_ = NULL; }
416 416
417 // Returns a local variable index for a temporary local that is 417 // Returns a local variable index for a temporary local that is
418 // on top of the current expression stack. 418 // on top of the current expression stack.
419 intptr_t GetCurrentTempLocalIndex() const; 419 intptr_t GetCurrentTempLocalIndex() const;
420 420
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // Output parameters. 603 // Output parameters.
604 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 604 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
605 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 605 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
606 606
607 intptr_t condition_token_pos_; 607 intptr_t condition_token_pos_;
608 }; 608 };
609 609
610 } // namespace dart 610 } // namespace dart
611 611
612 #endif // VM_FLOW_GRAPH_BUILDER_H_ 612 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698