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

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

Issue 2809583002: Use off-heap data for type feedback in PolymorphicInstanceCallInstr (Closed)
Patch Set: More feedback from Slava 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_dbc.cc ('k') | runtime/vm/intermediate_language_x64.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) 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/globals.h" // Needed here to get TARGET_ARCH_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 2986 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 Register result = locs->out(0).reg(); 2997 Register result = locs->out(0).reg();
2998 locs->live_registers()->Remove(Location::RegisterLocation(result)); 2998 locs->live_registers()->Remove(Location::RegisterLocation(result));
2999 2999
3000 compiler->SaveLiveRegisters(locs); 3000 compiler->SaveLiveRegisters(locs);
3001 if (instruction_->env() != NULL) { 3001 if (instruction_->env() != NULL) {
3002 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3002 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3003 compiler->pending_deoptimization_env_ = env; 3003 compiler->pending_deoptimization_env_ = env;
3004 } 3004 }
3005 __ Push(locs->in(0).reg()); 3005 __ Push(locs->in(0).reg());
3006 __ Push(locs->in(1).reg()); 3006 __ Push(locs->in(1).reg());
3007 const String& selector =
3008 String::Handle(instruction_->call()->ic_data()->target_name());
3009 const Array& argument_names =
3010 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
3007 compiler->EmitMegamorphicInstanceCall( 3011 compiler->EmitMegamorphicInstanceCall(
3008 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(), 3012 selector, argument_names, instruction_->call()->ArgumentCount(),
3009 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3013 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3010 locs, try_index_, 3014 locs, try_index_,
3011 /* slow_path_argument_count = */ 2); 3015 /* slow_path_argument_count = */ 2);
3012 __ mov(result, V0); 3016 __ mov(result, V0);
3013 compiler->RestoreLiveRegisters(locs); 3017 compiler->RestoreLiveRegisters(locs);
3014 __ b(exit_label()); 3018 __ b(exit_label());
3015 compiler->pending_deoptimization_env_ = NULL; 3019 compiler->pending_deoptimization_env_ = NULL;
3016 } 3020 }
3017 3021
3018 private: 3022 private:
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg(); 3137 Register result = merged_ ? locs->temp(0).reg() : locs->out(0).reg();
3134 locs->live_registers()->Remove(Location::RegisterLocation(result)); 3138 locs->live_registers()->Remove(Location::RegisterLocation(result));
3135 3139
3136 compiler->SaveLiveRegisters(locs); 3140 compiler->SaveLiveRegisters(locs);
3137 if (instruction_->env() != NULL) { 3141 if (instruction_->env() != NULL) {
3138 Environment* env = compiler->SlowPathEnvironmentFor(instruction_); 3142 Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
3139 compiler->pending_deoptimization_env_ = env; 3143 compiler->pending_deoptimization_env_ = env;
3140 } 3144 }
3141 __ Push(locs->in(0).reg()); 3145 __ Push(locs->in(0).reg());
3142 __ Push(locs->in(1).reg()); 3146 __ Push(locs->in(1).reg());
3147 String& selector =
3148 String::Handle(instruction_->call()->ic_data()->target_name());
3149 Array& argument_names =
3150 Array::Handle(instruction_->call()->ic_data()->arguments_descriptor());
3143 compiler->EmitMegamorphicInstanceCall( 3151 compiler->EmitMegamorphicInstanceCall(
3144 *instruction_->call()->ic_data(), instruction_->call()->ArgumentCount(), 3152 selector, argument_names, instruction_->call()->ArgumentCount(),
3145 instruction_->call()->deopt_id(), instruction_->call()->token_pos(), 3153 instruction_->call()->deopt_id(), instruction_->call()->token_pos(),
3146 locs, try_index_, 3154 locs, try_index_,
3147 /* slow_path_argument_count = */ 2); 3155 /* slow_path_argument_count = */ 2);
3148 __ mov(result, V0); 3156 __ mov(result, V0);
3149 compiler->RestoreLiveRegisters(locs); 3157 compiler->RestoreLiveRegisters(locs);
3150 compiler->pending_deoptimization_env_ = NULL; 3158 compiler->pending_deoptimization_env_ = NULL;
3151 if (merged_) { 3159 if (merged_) {
3152 __ BranchEqual(result, Bool::True(), instruction_->is_negated() 3160 __ BranchEqual(result, Bool::True(), instruction_->is_negated()
3153 ? labels_.false_label 3161 ? labels_.false_label
3154 : labels_.true_label); 3162 : labels_.true_label);
(...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after
6080 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6088 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6081 kGrowRegExpStackRuntimeEntry, 1, locs()); 6089 kGrowRegExpStackRuntimeEntry, 1, locs());
6082 __ lw(result, Address(SP, 1 * kWordSize)); 6090 __ lw(result, Address(SP, 1 * kWordSize));
6083 __ addiu(SP, SP, Immediate(2 * kWordSize)); 6091 __ addiu(SP, SP, Immediate(2 * kWordSize));
6084 } 6092 }
6085 6093
6086 6094
6087 } // namespace dart 6095 } // namespace dart
6088 6096
6089 #endif // defined TARGET_ARCH_MIPS 6097 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_dbc.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698