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

Side by Side Diff: src/a64/lithium-a64.cc

Issue 163913003: Fix A64 build: unwrap HSourcePosition into int before recording. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: set optimization id Created 6 years, 10 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 | « src/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 block->set_last_instruction_index(end); 664 block->set_last_instruction_index(end);
665 } 665 }
666 block->set_argument_count(argument_count_); 666 block->set_argument_count(argument_count_);
667 current_block_ = NULL; 667 current_block_ = NULL;
668 } 668 }
669 669
670 670
671 void LChunkBuilder::VisitInstruction(HInstruction* current) { 671 void LChunkBuilder::VisitInstruction(HInstruction* current) {
672 HInstruction* old_current = current_instruction_; 672 HInstruction* old_current = current_instruction_;
673 current_instruction_ = current; 673 current_instruction_ = current;
674 if (current->has_position()) position_ = current->position();
675 674
676 LInstruction* instr = NULL; 675 LInstruction* instr = NULL;
677 if (current->CanReplaceWithDummyUses()) { 676 if (current->CanReplaceWithDummyUses()) {
678 if (current->OperandCount() == 0) { 677 if (current->OperandCount() == 0) {
679 instr = DefineAsRegister(new(zone()) LDummy()); 678 instr = DefineAsRegister(new(zone()) LDummy());
680 } else { 679 } else {
681 ASSERT(!current->OperandAt(0)->IsControlInstruction()); 680 ASSERT(!current->OperandAt(0)->IsControlInstruction());
682 instr = DefineAsRegister(new(zone()) 681 instr = DefineAsRegister(new(zone())
683 LDummyUse(UseAny(current->OperandAt(0)))); 682 LDummyUse(UseAny(current->OperandAt(0))));
684 } 683 }
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 2442
2444 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2443 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2445 LOperand* receiver = UseRegister(instr->receiver()); 2444 LOperand* receiver = UseRegister(instr->receiver());
2446 LOperand* function = UseRegister(instr->function()); 2445 LOperand* function = UseRegister(instr->function());
2447 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2446 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2448 return AssignEnvironment(DefineAsRegister(result)); 2447 return AssignEnvironment(DefineAsRegister(result));
2449 } 2448 }
2450 2449
2451 2450
2452 } } // namespace v8::internal 2451 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698