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

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

Issue 1950553002: VM: Remove PushTempInstr, simplify SSA renaming. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after
2962 return NULL; 2962 return NULL;
2963 } 2963 }
2964 2964
2965 2965
2966 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2966 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2967 // Only appears in initial definitions, never in normal code. 2967 // Only appears in initial definitions, never in normal code.
2968 UNREACHABLE(); 2968 UNREACHABLE();
2969 } 2969 }
2970 2970
2971 2971
2972 LocationSummary* PushTempInstr::MakeLocationSummary(Zone* zone,
2973 bool optimizing) const {
2974 return LocationSummary::Make(zone,
2975 1,
2976 Location::NoLocation(),
2977 LocationSummary::kNoCall);
2978 }
2979
2980
2981 void PushTempInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2982 ASSERT(!compiler->is_optimizing());
2983 // Nothing to do.
2984 }
2985
2986
2987 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone, 2972 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone,
2988 bool optimizing) const { 2973 bool optimizing) const {
2989 return (InputCount() == 1) 2974 return (InputCount() == 1)
2990 ? LocationSummary::Make(zone, 2975 ? LocationSummary::Make(zone,
2991 1, 2976 1,
2992 Location::SameAsFirstInput(), 2977 Location::SameAsFirstInput(),
2993 LocationSummary::kNoCall) 2978 LocationSummary::kNoCall)
2994 : LocationSummary::Make(zone, 2979 : LocationSummary::Make(zone,
2995 0, 2980 0,
2996 Location::NoLocation(), 2981 Location::NoLocation(),
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
3870 set_native_c_function(native_function); 3855 set_native_c_function(native_function);
3871 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3856 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3872 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3857 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3873 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3858 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3874 set_is_bootstrap_native(is_bootstrap_native); 3859 set_is_bootstrap_native(is_bootstrap_native);
3875 } 3860 }
3876 3861
3877 #undef __ 3862 #undef __
3878 3863
3879 } // namespace dart 3864 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698