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

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

Issue 1314143002: VM: Don't depend on unoptimized code when inlining and creating deoptimization info. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 5 years, 3 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
« no previous file with comments | « runtime/vm/flow_graph_inliner.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 7997 matching lines...) Expand 10 before | Expand all | Expand 10 after
8008 intptr_t CountArgsPushed() { 8008 intptr_t CountArgsPushed() {
8009 intptr_t count = 0; 8009 intptr_t count = 0;
8010 for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) { 8010 for (Environment::DeepIterator it(this); !it.Done(); it.Advance()) {
8011 if (it.CurrentValue()->definition()->IsPushArgument()) { 8011 if (it.CurrentValue()->definition()->IsPushArgument()) {
8012 count++; 8012 count++;
8013 } 8013 }
8014 } 8014 }
8015 return count; 8015 return count;
8016 } 8016 }
8017 8017
8018 const Code& code() const { return parsed_function_.code(); } 8018 const Function& function() const { return parsed_function_.function(); }
8019 8019
8020 Environment* DeepCopy(Zone* zone) const { 8020 Environment* DeepCopy(Zone* zone) const {
8021 return DeepCopy(zone, Length()); 8021 return DeepCopy(zone, Length());
8022 } 8022 }
8023 8023
8024 void DeepCopyTo(Zone* zone, Instruction* instr) const; 8024 void DeepCopyTo(Zone* zone, Instruction* instr) const;
8025 void DeepCopyToOuter(Zone* zone, Instruction* instr) const; 8025 void DeepCopyToOuter(Zone* zone, Instruction* instr) const;
8026 8026
8027 void DeepCopyAfterTo(Zone* zone, 8027 void DeepCopyAfterTo(Zone* zone,
8028 Instruction* instr, 8028 Instruction* instr,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
8105 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8105 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8106 UNIMPLEMENTED(); \ 8106 UNIMPLEMENTED(); \
8107 return NULL; \ 8107 return NULL; \
8108 } \ 8108 } \
8109 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8109 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8110 8110
8111 8111
8112 } // namespace dart 8112 } // namespace dart
8113 8113
8114 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8114 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698