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

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

Issue 131103021: Replace HThrow with HCallRuntime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/x64/lithium-x64.h ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 } 1665 }
1666 1666
1667 1667
1668 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1668 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1669 // The control instruction marking the end of a block that completed 1669 // The control instruction marking the end of a block that completed
1670 // abruptly (e.g., threw an exception). There is nothing specific to do. 1670 // abruptly (e.g., threw an exception). There is nothing specific to do.
1671 return NULL; 1671 return NULL;
1672 } 1672 }
1673 1673
1674 1674
1675 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
1676 LOperand* context = UseFixed(instr->context(), rsi);
1677 LOperand* value = UseFixed(instr->value(), rax);
1678 return MarkAsCall(new(zone()) LThrow(context, value), instr);
1679 }
1680
1681
1682 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) { 1675 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) {
1683 return NULL; 1676 return NULL;
1684 } 1677 }
1685 1678
1686 1679
1687 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { 1680 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) {
1688 // All HForceRepresentation instructions should be eliminated in the 1681 // All HForceRepresentation instructions should be eliminated in the
1689 // representation change phase of Hydrogen. 1682 // representation change phase of Hydrogen.
1690 UNREACHABLE(); 1683 UNREACHABLE();
1691 return NULL; 1684 return NULL;
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2448 LOperand* object = UseRegister(instr->object()); 2441 LOperand* object = UseRegister(instr->object());
2449 LOperand* index = UseTempRegister(instr->index()); 2442 LOperand* index = UseTempRegister(instr->index());
2450 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2443 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2451 } 2444 }
2452 2445
2453 2446
2454 } } // namespace v8::internal 2447 } } // namespace v8::internal
2455 2448
2456 #endif // V8_TARGET_ARCH_X64 2449 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698