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

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

Issue 2836043002: Revert "Reland "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.cc ('k') | runtime/vm/intermediate_language_arm64.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 1
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
7 #if defined(TARGET_ARCH_ARM) 7 #if defined(TARGET_ARCH_ARM)
8 8
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 Register result = locs->out(0).reg(); 3151 Register result = locs->out(0).reg();
3152 locs->live_registers()->Remove(Location::RegisterLocation(result)); 3152 locs->live_registers()->Remove(Location::RegisterLocation(result));
3153 3153
3154 compiler->SaveLiveRegisters(locs); 3154 compiler->SaveLiveRegisters(locs);
3155 if (instruction_->env() != NULL) { 3155 if (instruction_->env() != NULL) {
3156 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3156 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3157 compiler->pending_deoptimization_env_ = env; 3157 compiler->pending_deoptimization_env_ = env;
3158 } 3158 }
3159 __ Push(locs->in(0).reg()); 3159 __ Push(locs->in(0).reg());
3160 __ Push(locs->in(1).reg()); 3160 __ Push(locs->in(1).reg());
3161 const String& selector =
3162 String::Handle(instruction_->call()->ic_data()->target_name());
3163 const Array& argument_names =
3164 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
3165 compiler->EmitMegamorphicInstanceCall( 3161 compiler->EmitMegamorphicInstanceCall(
3166 selector, argument_names, instruction_->call()->ArgumentCount(), 3162 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
3167 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3163 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3168 locs, try_index_, 3164 locs, try_index_,
3169 /* slow_path_argument_count = */ 2); 3165 /* slow_path_argument_count = */ 2);
3170 __ mov(result, Operand(R0)); 3166 __ mov(result, Operand(R0));
3171 compiler->RestoreLiveRegisters(locs); 3167 compiler->RestoreLiveRegisters(locs);
3172 __ b(exit_label()); 3168 __ b(exit_label());
3173 compiler->pending_deoptimization_env_ = NULL; 3169 compiler->pending_deoptimization_env_ = NULL;
3174 } 3170 }
3175 3171
3176 private: 3172 private:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3294 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg(); 3290 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg();
3295 locs->live_registers()->Remove(Location::RegisterLocation(result)); 3291 locs->live_registers()->Remove(Location::RegisterLocation(result));
3296 3292
3297 compiler->SaveLiveRegisters(locs); 3293 compiler->SaveLiveRegisters(locs);
3298 if (instruction_->env() != NULL) { 3294 if (instruction_->env() != NULL) {
3299 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3295 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3300 compiler->pending_deoptimization_env_ = env; 3296 compiler->pending_deoptimization_env_ = env;
3301 } 3297 }
3302 __ Push(locs->in(0).reg()); 3298 __ Push(locs->in(0).reg());
3303 __ Push(locs->in(1).reg()); 3299 __ Push(locs->in(1).reg());
3304 String& selector =
3305 String::Handle(instruction_->call()->ic_data()->target_name());
3306 Array& argument_names =
3307 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
3308 compiler->EmitMegamorphicInstanceCall( 3300 compiler->EmitMegamorphicInstanceCall(
3309 selector, argument_names, instruction_->call()->ArgumentCount(), 3301 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(),
3310 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3302 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3311 locs, try_index_, 3303 locs, try_index_,
3312 /* slow_path_argument_count = */ 2); 3304 /* slow_path_argument_count = */ 2);
3313 __ mov(result, Operand(R0)); 3305 __ mov(result, Operand(R0));
3314 compiler->RestoreLiveRegisters(locs); 3306 compiler->RestoreLiveRegisters(locs);
3315 compiler->pending_deoptimization_env_ = NULL; 3307 compiler->pending_deoptimization_env_ = NULL;
3316 if (merged_) { 3308 if (merged_) {
3317 __ CompareObject(result, Bool::True()); 3309 __ CompareObject(result, Bool::True());
3318 __ b( 3310 __ b(
3319 instruction_->is_negated() ? labels_.false_label : labels_.true_label, 3311 instruction_->is_negated() ? labels_.false_label : labels_.true_label,
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after
7289 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 7281 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
7290 kGrowRegExpStackRuntimeEntry, 1, locs()); 7282 kGrowRegExpStackRuntimeEntry, 1, locs());
7291 __ Drop(1); 7283 __ Drop(1);
7292 __ Pop(result); 7284 __ Pop(result);
7293 } 7285 }
7294 7286
7295 7287
7296 } // namespace dart 7288 } // namespace dart
7297 7289
7298 #endif // defined TARGET_ARCH_ARM 7290 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698