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

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

Issue 6711027: [Isolates] Merge 7201:7258 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 return DefineAsRegister(new LOuterContext(context)); 1192 return DefineAsRegister(new LOuterContext(context));
1193 } 1193 }
1194 1194
1195 1195
1196 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { 1196 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
1197 return DefineAsRegister(new LGlobalObject); 1197 return DefineAsRegister(new LGlobalObject);
1198 } 1198 }
1199 1199
1200 1200
1201 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { 1201 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) {
1202 return DefineAsRegister(new LGlobalReceiver); 1202 LOperand* global_object = UseRegisterAtStart(instr->value());
1203 return DefineAsRegister(new LGlobalReceiver(global_object));
1203 } 1204 }
1204 1205
1205 1206
1206 LInstruction* LChunkBuilder::DoCallConstantFunction( 1207 LInstruction* LChunkBuilder::DoCallConstantFunction(
1207 HCallConstantFunction* instr) { 1208 HCallConstantFunction* instr) {
1208 argument_count_ -= instr->argument_count(); 1209 argument_count_ -= instr->argument_count();
1209 return MarkAsCall(DefineFixed(new LCallConstantFunction, rax), instr); 1210 return MarkAsCall(DefineFixed(new LCallConstantFunction, rax), instr);
1210 } 1211 }
1211 1212
1212 1213
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value()))); 1653 return DefineAsRegister(new LInteger32ToDouble(Use(instr->value())));
1653 } 1654 }
1654 } 1655 }
1655 UNREACHABLE(); 1656 UNREACHABLE();
1656 return NULL; 1657 return NULL;
1657 } 1658 }
1658 1659
1659 1660
1660 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { 1661 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) {
1661 LOperand* value = UseRegisterAtStart(instr->value()); 1662 LOperand* value = UseRegisterAtStart(instr->value());
1662 return AssignEnvironment(new LCheckSmi(value, zero)); 1663 return AssignEnvironment(new LCheckNonSmi(value));
1663 } 1664 }
1664 1665
1665 1666
1666 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1667 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1667 LOperand* value = UseRegisterAtStart(instr->value()); 1668 LOperand* value = UseRegisterAtStart(instr->value());
1668 LCheckInstanceType* result = new LCheckInstanceType(value); 1669 LCheckInstanceType* result = new LCheckInstanceType(value);
1669 return AssignEnvironment(result); 1670 return AssignEnvironment(result);
1670 } 1671 }
1671 1672
1672 1673
1673 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1674 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1674 LOperand* temp = TempRegister(); 1675 LOperand* temp = TempRegister();
1675 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp); 1676 LCheckPrototypeMaps* result = new LCheckPrototypeMaps(temp);
1676 return AssignEnvironment(result); 1677 return AssignEnvironment(result);
1677 } 1678 }
1678 1679
1679 1680
1680 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1681 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1681 LOperand* value = UseRegisterAtStart(instr->value()); 1682 LOperand* value = UseRegisterAtStart(instr->value());
1682 return AssignEnvironment(new LCheckSmi(value, not_zero)); 1683 return AssignEnvironment(new LCheckSmi(value));
1683 } 1684 }
1684 1685
1685 1686
1686 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1687 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1687 LOperand* value = UseRegisterAtStart(instr->value()); 1688 LOperand* value = UseRegisterAtStart(instr->value());
1688 return AssignEnvironment(new LCheckFunction(value)); 1689 return AssignEnvironment(new LCheckFunction(value));
1689 } 1690 }
1690 1691
1691 1692
1692 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { 1693 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 2058
2058 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2059 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2059 HEnvironment* outer = current_block_->last_environment()->outer(); 2060 HEnvironment* outer = current_block_->last_environment()->outer();
2060 current_block_->UpdateEnvironment(outer); 2061 current_block_->UpdateEnvironment(outer);
2061 return NULL; 2062 return NULL;
2062 } 2063 }
2063 2064
2064 } } // namespace v8::internal 2065 } } // namespace v8::internal
2065 2066
2066 #endif // V8_TARGET_ARCH_X64 2067 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/global-handles.cc ('K') | « src/x64/lithium-x64.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698