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

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

Issue 2903993002: Remember deopt-id -> context-level mappings in var descriptors. (Closed)
Patch Set: update descriptor tests Created 3 years, 6 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_ia32.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 5950 matching lines...) Expand 10 before | Expand all | Expand 10 after
5961 5961
5962 5962
5963 Condition StrictCompareInstr::EmitComparisonCode(FlowGraphCompiler* compiler, 5963 Condition StrictCompareInstr::EmitComparisonCode(FlowGraphCompiler* compiler,
5964 BranchLabels labels) { 5964 BranchLabels labels) {
5965 Location left = locs()->in(0); 5965 Location left = locs()->in(0);
5966 Location right = locs()->in(1); 5966 Location right = locs()->in(1);
5967 ASSERT(!left.IsConstant() || !right.IsConstant()); 5967 ASSERT(!left.IsConstant() || !right.IsConstant());
5968 Condition true_condition; 5968 Condition true_condition;
5969 if (left.IsConstant()) { 5969 if (left.IsConstant()) {
5970 true_condition = compiler->EmitEqualityRegConstCompare( 5970 true_condition = compiler->EmitEqualityRegConstCompare(
5971 right.reg(), left.constant(), needs_number_check(), token_pos()); 5971 right.reg(), left.constant(), needs_number_check(), token_pos(),
5972 deopt_id_);
5972 } else if (right.IsConstant()) { 5973 } else if (right.IsConstant()) {
5973 true_condition = compiler->EmitEqualityRegConstCompare( 5974 true_condition = compiler->EmitEqualityRegConstCompare(
5974 left.reg(), right.constant(), needs_number_check(), token_pos()); 5975 left.reg(), right.constant(), needs_number_check(), token_pos(),
5976 deopt_id_);
5975 } else { 5977 } else {
5976 true_condition = compiler->EmitEqualityRegRegCompare( 5978 true_condition = compiler->EmitEqualityRegRegCompare(
5977 left.reg(), right.reg(), needs_number_check(), token_pos()); 5979 left.reg(), right.reg(), needs_number_check(), token_pos(), deopt_id_);
5978 } 5980 }
5979 if (kind() != Token::kEQ_STRICT) { 5981 if (kind() != Token::kEQ_STRICT) {
5980 ASSERT(kind() == Token::kNE_STRICT); 5982 ASSERT(kind() == Token::kNE_STRICT);
5981 true_condition = NegateCondition(true_condition); 5983 true_condition = NegateCondition(true_condition);
5982 } 5984 }
5983 return true_condition; 5985 return true_condition;
5984 } 5986 }
5985 5987
5986 5988
5987 void StrictCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5989 void StrictCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
6047 compiler->GenerateCall(token_pos(), stub_entry, RawPcDescriptors::kOther, 6049 compiler->GenerateCall(token_pos(), stub_entry, RawPcDescriptors::kOther,
6048 locs()); 6050 locs());
6049 compiler->AddStubCallTarget(stub); 6051 compiler->AddStubCallTarget(stub);
6050 __ Drop(ArgumentCount()); // Discard arguments. 6052 __ Drop(ArgumentCount()); // Discard arguments.
6051 } 6053 }
6052 6054
6053 6055
6054 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6056 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6055 ASSERT(!compiler->is_optimizing()); 6057 ASSERT(!compiler->is_optimizing());
6056 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry()); 6058 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry());
6057 compiler->AddCurrentDescriptor(stub_kind_, Thread::kNoDeoptId, token_pos()); 6059 compiler->AddCurrentDescriptor(stub_kind_, deopt_id_, token_pos());
6058 compiler->RecordSafepoint(locs()); 6060 compiler->RecordSafepoint(locs());
6059 } 6061 }
6060 6062
6061 6063
6062 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone, 6064 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone,
6063 bool opt) const { 6065 bool opt) const {
6064 const intptr_t kNumInputs = 1; 6066 const intptr_t kNumInputs = 1;
6065 const intptr_t kNumTemps = 0; 6067 const intptr_t kNumTemps = 0;
6066 LocationSummary* locs = new (zone) 6068 LocationSummary* locs = new (zone)
6067 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); 6069 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
(...skipping 14 matching lines...) Expand all
6082 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6084 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6083 kGrowRegExpStackRuntimeEntry, 1, locs()); 6085 kGrowRegExpStackRuntimeEntry, 1, locs());
6084 __ lw(result, Address(SP, 1 * kWordSize)); 6086 __ lw(result, Address(SP, 1 * kWordSize));
6085 __ addiu(SP, SP, Immediate(2 * kWordSize)); 6087 __ addiu(SP, SP, Immediate(2 * kWordSize));
6086 } 6088 }
6087 6089
6088 6090
6089 } // namespace dart 6091 } // namespace dart
6090 6092
6091 #endif // defined TARGET_ARCH_MIPS 6093 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698