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

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

Issue 14273015: Implements exception handler stub on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/object_mips_test.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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2309 right.reg(), 2309 right.reg(),
2310 needs_number_check()); 2310 needs_number_check());
2311 } 2311 }
2312 2312
2313 Condition true_condition = (kind() == Token::kEQ_STRICT) ? EQ : NE; 2313 Condition true_condition = (kind() == Token::kEQ_STRICT) ? EQ : NE;
2314 branch->EmitBranchOnCondition(compiler, true_condition); 2314 branch->EmitBranchOnCondition(compiler, true_condition);
2315 } 2315 }
2316 2316
2317 2317
2318 LocationSummary* BooleanNegateInstr::MakeLocationSummary() const { 2318 LocationSummary* BooleanNegateInstr::MakeLocationSummary() const {
2319 UNIMPLEMENTED(); 2319 return LocationSummary::Make(1,
2320 return NULL; 2320 Location::RequiresRegister(),
2321 LocationSummary::kNoCall);
2321 } 2322 }
2322 2323
2323 2324
2324 void BooleanNegateInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2325 void BooleanNegateInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2325 UNIMPLEMENTED(); 2326 Register value = locs()->in(0).reg();
2327 Register result = locs()->out().reg();
2328
2329 __ LoadObject(result, Bool::True());
2330 __ LoadObject(TMP1, Bool::False());
2331 __ subu(CMPRES, value, result);
2332 __ movz(result, TMP1, CMPRES); // If value is True, move False into result.
2326 } 2333 }
2327 2334
2328 2335
2329 LocationSummary* ChainContextInstr::MakeLocationSummary() const { 2336 LocationSummary* ChainContextInstr::MakeLocationSummary() const {
2330 UNIMPLEMENTED(); 2337 UNIMPLEMENTED();
2331 return NULL; 2338 return NULL;
2332 } 2339 }
2333 2340
2334 2341
2335 void ChainContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2342 void ChainContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 &label, 2388 &label,
2382 PcDescriptors::kOther, 2389 PcDescriptors::kOther,
2383 locs()); 2390 locs());
2384 __ Drop(2); // Discard type arguments and receiver. 2391 __ Drop(2); // Discard type arguments and receiver.
2385 } 2392 }
2386 2393
2387 } // namespace dart 2394 } // namespace dart
2388 2395
2389 #endif // defined TARGET_ARCH_MIPS 2396 #endif // defined TARGET_ARCH_MIPS
2390 2397
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/object_mips_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698