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

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

Issue 213213002: Fix LoadFieldByIndex to take mutable heap-numbers into account. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed nit Created 6 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.h » ('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 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2554 LOperand* value = UseRegisterAtStart(instr->value()); 2554 LOperand* value = UseRegisterAtStart(instr->value());
2555 LOperand* map = UseRegister(instr->map()); 2555 LOperand* map = UseRegister(instr->map());
2556 LOperand* temp = TempRegister(); 2556 LOperand* temp = TempRegister();
2557 return AssignEnvironment(new(zone()) LCheckMapValue(value, map, temp)); 2557 return AssignEnvironment(new(zone()) LCheckMapValue(value, map, temp));
2558 } 2558 }
2559 2559
2560 2560
2561 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2561 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2562 LOperand* object = UseRegisterAtStart(instr->object()); 2562 LOperand* object = UseRegisterAtStart(instr->object());
2563 LOperand* index = UseRegister(instr->index()); 2563 LOperand* index = UseRegister(instr->index());
2564 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2565 LInstruction* result = DefineSameAsFirst(load);
2566 return AssignPointerMap(result);
2565 } 2567 }
2566 2568
2567 2569
2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2570 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2569 LOperand* receiver = UseRegister(instr->receiver()); 2571 LOperand* receiver = UseRegister(instr->receiver());
2570 LOperand* function = UseRegister(instr->function()); 2572 LOperand* function = UseRegister(instr->function());
2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2573 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2572 return AssignEnvironment(DefineAsRegister(result)); 2574 return AssignEnvironment(DefineAsRegister(result));
2573 } 2575 }
2574 2576
2575 2577
2576 } } // namespace v8::internal 2578 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm64/lithium-codegen-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698