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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6113003: ARM: Fix lithium codegeneration of TypeofIs... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 Register input = ToRegister(instr->input()); 2477 Register input = ToRegister(instr->input());
2478 Register result = ToRegister(instr->result()); 2478 Register result = ToRegister(instr->result());
2479 Label true_label; 2479 Label true_label;
2480 Label false_label; 2480 Label false_label;
2481 Label done; 2481 Label done;
2482 2482
2483 Condition final_branch_condition = EmitTypeofIs(&true_label, 2483 Condition final_branch_condition = EmitTypeofIs(&true_label,
2484 &false_label, 2484 &false_label,
2485 input, 2485 input,
2486 instr->type_literal()); 2486 instr->type_literal());
2487 __ b(final_branch_condition, &true_label);
2488 __ bind(&false_label);
2489 __ LoadRoot(result, Heap::kFalseValueRootIndex);
2490 __ b(&done);
2487 2491
2488 __ LoadRoot(result, Heap::kTrueValueRootIndex, final_branch_condition); 2492 __ bind(&true_label);
2489 __ LoadRoot(result, Heap::kFalseValueRootIndex, 2493 __ LoadRoot(result, Heap::kTrueValueRootIndex);
2490 NegateCondition(final_branch_condition)); 2494
2495 __ bind(&done);
2491 } 2496 }
2492 2497
2493 2498
2494 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) { 2499 void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) {
2495 Register input = ToRegister(instr->input()); 2500 Register input = ToRegister(instr->input());
2496 int true_block = chunk_->LookupDestination(instr->true_block_id()); 2501 int true_block = chunk_->LookupDestination(instr->true_block_id());
2497 int false_block = chunk_->LookupDestination(instr->false_block_id()); 2502 int false_block = chunk_->LookupDestination(instr->false_block_id());
2498 Label* true_label = chunk_->GetAssemblyLabel(true_block); 2503 Label* true_label = chunk_->GetAssemblyLabel(true_block);
2499 Label* false_label = chunk_->GetAssemblyLabel(false_block); 2504 Label* false_label = chunk_->GetAssemblyLabel(false_block);
2500 2505
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2618 2623
2619 2624
2620 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2625 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2621 Abort("DoOsrEntry unimplemented."); 2626 Abort("DoOsrEntry unimplemented.");
2622 } 2627 }
2623 2628
2624 2629
2625 #undef __ 2630 #undef __
2626 2631
2627 } } // namespace v8::internal 2632 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698