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

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

Issue 2833413002: Revert "Use off-heap data for type feedback in PolymorphicInstanceCallInstr" (Closed)
Patch Set: Created 3 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
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_dbc.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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/globals.h" // Needed here to get TARGET_ARCH_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2881 Register result = locs->out(0).reg(); 2881 Register result = locs->out(0).reg();
2882 locs->live_registers()->Remove(Location::RegisterLocation(result)); 2882 locs->live_registers()->Remove(Location::RegisterLocation(result));
2883 2883
2884 compiler->SaveLiveRegisters(locs); 2884 compiler->SaveLiveRegisters(locs);
2885 if (instruction_->env() != NULL) { 2885 if (instruction_->env() != NULL) {
2886 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 2886 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
2887 compiler->pending_deoptimization_env_ = env; 2887 compiler->pending_deoptimization_env_ = env;
2888 } 2888 }
2889 __ Push(locs->in(0).reg()); 2889 __ Push(locs->in(0).reg());
2890 __ Push(locs->in(1).reg()); 2890 __ Push(locs->in(1).reg());
2891 const String& selector =
2892 String::Handle(instruction_->call()->ic_data()->target_name());
2893 const Array& argument_names =
2894 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
2895 compiler->EmitMegamorphicInstanceCall( 2891 compiler->EmitMegamorphicInstanceCall(
2896 selector, argument_names, instruction_->call()->ArgumentCount(), 2892 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
2897 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 2893 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
2898 locs, try_index_, 2894 locs, try_index_,
2899 /* slow_path_argument_count = */ 2); 2895 /* slow_path_argument_count = */ 2);
2900 __ mov(result, R0); 2896 __ mov(result, R0);
2901 compiler->RestoreLiveRegisters(locs); 2897 compiler->RestoreLiveRegisters(locs);
2902 __ b(exit_label()); 2898 __ b(exit_label());
2903 compiler->pending_deoptimization_env_ = NULL; 2899 compiler->pending_deoptimization_env_ = NULL;
2904 } 2900 }
2905 2901
2906 private: 2902 private:
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3027 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg(); 3023 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg();
3028 locs->live_registers()->Remove(Location::RegisterLocation(result)); 3024 locs->live_registers()->Remove(Location::RegisterLocation(result));
3029 3025
3030 compiler->SaveLiveRegisters(locs); 3026 compiler->SaveLiveRegisters(locs);
3031 if (instruction_->env() != NULL) { 3027 if (instruction_->env() != NULL) {
3032 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3028 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3033 compiler->pending_deoptimization_env_ = env; 3029 compiler->pending_deoptimization_env_ = env;
3034 } 3030 }
3035 __ Push(locs->in(0).reg()); 3031 __ Push(locs->in(0).reg());
3036 __ Push(locs->in(1).reg()); 3032 __ Push(locs->in(1).reg());
3037 String& selector =
3038 String::Handle(instruction_->call()->ic_data()->target_name());
3039 Array& argument_names =
3040 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
3041 compiler->EmitMegamorphicInstanceCall( 3033 compiler->EmitMegamorphicInstanceCall(
3042 selector, argument_names, instruction_->call()->ArgumentCount(), 3034 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
3043 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3035 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3044 locs, try_index_, 3036 locs, try_index_,
3045 /* slow_path_argument_count = */ 2); 3037 /* slow_path_argument_count = */ 2);
3046 __ mov(result, R0); 3038 __ mov(result, R0);
3047 compiler->RestoreLiveRegisters(locs); 3039 compiler->RestoreLiveRegisters(locs);
3048 compiler->pending_deoptimization_env_ = NULL; 3040 compiler->pending_deoptimization_env_ = NULL;
3049 if (merged_) { 3041 if (merged_) {
3050 __ CompareObject(result, Bool::True()); 3042 __ CompareObject(result, Bool::True());
3051 __ b( 3043 __ b(
3052 instruction_->is_negated() ? labels_.false_label : labels_.true_label, 3044 instruction_->is_negated() ? labels_.false_label : labels_.true_label,
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after
6112 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6104 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6113 kGrowRegExpStackRuntimeEntry, 1, locs()); 6105 kGrowRegExpStackRuntimeEntry, 1, locs());
6114 __ Drop(1); 6106 __ Drop(1);
6115 __ Pop(result); 6107 __ Pop(result);
6116 } 6108 }
6117 6109
6118 6110
6119 } // namespace dart 6111 } // namespace dart
6120 6112
6121 #endif // defined TARGET_ARCH_ARM64 6113 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698