| OLD | NEW |
| 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 5114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5125 | 5125 |
| 5126 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 5126 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 5127 if (Assembler::EmittingComments()) { | 5127 if (Assembler::EmittingComments()) { |
| 5128 __ Comment("slow path check bound operation"); | 5128 __ Comment("slow path check bound operation"); |
| 5129 } | 5129 } |
| 5130 __ Bind(entry_label()); | 5130 __ Bind(entry_label()); |
| 5131 LocationSummary* locs = instruction_->locs(); | 5131 LocationSummary* locs = instruction_->locs(); |
| 5132 __ Push(locs->in(0).reg()); | 5132 __ Push(locs->in(0).reg()); |
| 5133 __ Push(locs->in(1).reg()); | 5133 __ Push(locs->in(1).reg()); |
| 5134 __ CallRuntime(kRangeErrorRuntimeEntry, 2); | 5134 __ CallRuntime(kRangeErrorRuntimeEntry, 2); |
| 5135 compiler->pc_descriptors_list()->AddDescriptor( | 5135 compiler->AddDescriptor( |
| 5136 RawPcDescriptors::kOther, compiler->assembler()->CodeSize(), | 5136 RawPcDescriptors::kOther, compiler->assembler()->CodeSize(), |
| 5137 instruction_->deopt_id(), instruction_->token_pos(), try_index_); | 5137 instruction_->deopt_id(), instruction_->token_pos(), try_index_); |
| 5138 __ break_(0); | 5138 __ break_(0); |
| 5139 } | 5139 } |
| 5140 | 5140 |
| 5141 private: | 5141 private: |
| 5142 GenericCheckBoundInstr* instruction_; | 5142 GenericCheckBoundInstr* instruction_; |
| 5143 intptr_t try_index_; | 5143 intptr_t try_index_; |
| 5144 }; | 5144 }; |
| 5145 | 5145 |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6009 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 6009 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
| 6010 kGrowRegExpStackRuntimeEntry, 1, locs()); | 6010 kGrowRegExpStackRuntimeEntry, 1, locs()); |
| 6011 __ lw(result, Address(SP, 1 * kWordSize)); | 6011 __ lw(result, Address(SP, 1 * kWordSize)); |
| 6012 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 6012 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 6013 } | 6013 } |
| 6014 | 6014 |
| 6015 | 6015 |
| 6016 } // namespace dart | 6016 } // namespace dart |
| 6017 | 6017 |
| 6018 #endif // defined TARGET_ARCH_MIPS | 6018 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |