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

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

Issue 2842753002: Reland "Use off-heap data for type feedback in PolymorphicInstanceCallInstr" (Closed)
Patch Set: Fix AOT case Created 3 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_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());
2891 compiler->EmitMegamorphicInstanceCall( 2895 compiler->EmitMegamorphicInstanceCall(
2892 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(), 2896 selector, argument_names, instruction_->call()->ArgumentCount(),
2893 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 2897 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
2894 locs, try_index_, 2898 locs, try_index_,
2895 /* slow_path_argument_count = */ 2); 2899 /* slow_path_argument_count = */ 2);
2896 __ mov(result, R0); 2900 __ mov(result, R0);
2897 compiler->RestoreLiveRegisters(locs); 2901 compiler->RestoreLiveRegisters(locs);
2898 __ b(exit_label()); 2902 __ b(exit_label());
2899 compiler->pending_deoptimization_env_ = NULL; 2903 compiler->pending_deoptimization_env_ = NULL;
2900 } 2904 }
2901 2905
2902 private: 2906 private:
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3023 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg(); 3027 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg();
3024 locs->live_registers()->Remove(Location::RegisterLocation(result)); 3028 locs->live_registers()->Remove(Location::RegisterLocation(result));
3025 3029
3026 compiler->SaveLiveRegisters(locs); 3030 compiler->SaveLiveRegisters(locs);
3027 if (instruction_->env() != NULL) { 3031 if (instruction_->env() != NULL) {
3028 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3032 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3029 compiler->pending_deoptimization_env_ = env; 3033 compiler->pending_deoptimization_env_ = env;
3030 } 3034 }
3031 __ Push(locs->in(0).reg()); 3035 __ Push(locs->in(0).reg());
3032 __ Push(locs->in(1).reg()); 3036 __ 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());
3033 compiler->EmitMegamorphicInstanceCall( 3041 compiler->EmitMegamorphicInstanceCall(
3034 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(), 3042 selector, argument_names, instruction_->call()->ArgumentCount(),
3035 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3043 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3036 locs, try_index_, 3044 locs, try_index_,
3037 /* slow_path_argument_count = */ 2); 3045 /* slow_path_argument_count = */ 2);
3038 __ mov(result, R0); 3046 __ mov(result, R0);
3039 compiler->RestoreLiveRegisters(locs); 3047 compiler->RestoreLiveRegisters(locs);
3040 compiler->pending_deoptimization_env_ = NULL; 3048 compiler->pending_deoptimization_env_ = NULL;
3041 if (merged_) { 3049 if (merged_) {
3042 __ CompareObject(result, Bool::True()); 3050 __ CompareObject(result, Bool::True());
3043 __ b( 3051 __ b(
3044 instruction_->is_negated() ? labels_.false_label : labels_.true_label, 3052 instruction_->is_negated() ? labels_.false_label : labels_.true_label,
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after
6104 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6112 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6105 kGrowRegExpStackRuntimeEntry, 1, locs()); 6113 kGrowRegExpStackRuntimeEntry, 1, locs());
6106 __ Drop(1); 6114 __ Drop(1);
6107 __ Pop(result); 6115 __ Pop(result);
6108 } 6116 }
6109 6117
6110 6118
6111 } // namespace dart 6119 } // namespace dart
6112 6120
6113 #endif // defined TARGET_ARCH_ARM64 6121 #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