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

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

Issue 148453009: Both HGlobalObject and HGlobalReceiver can be replaced with HLoadNamedField. (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/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 return DefineAsRegister(new(zone()) LContext); 1044 return DefineAsRegister(new(zone()) LContext);
1045 } 1045 }
1046 1046
1047 1047
1048 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { 1048 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) {
1049 LOperand* context = UseFixed(instr->context(), cp); 1049 LOperand* context = UseFixed(instr->context(), cp);
1050 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); 1050 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr);
1051 } 1051 }
1052 1052
1053 1053
1054 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) {
1055 LOperand* context = UseRegisterAtStart(instr->value());
1056 return DefineAsRegister(new(zone()) LGlobalObject(context));
1057 }
1058
1059
1060 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) {
1061 LOperand* global_object = UseRegisterAtStart(instr->value());
1062 return DefineAsRegister(new(zone()) LGlobalReceiver(global_object));
1063 }
1064
1065
1066 LInstruction* LChunkBuilder::DoCallJSFunction( 1054 LInstruction* LChunkBuilder::DoCallJSFunction(
1067 HCallJSFunction* instr) { 1055 HCallJSFunction* instr) {
1068 LOperand* function = UseFixed(instr->function(), a1); 1056 LOperand* function = UseFixed(instr->function(), a1);
1069 1057
1070 LCallJSFunction* result = new(zone()) LCallJSFunction(function); 1058 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1071 1059
1072 return MarkAsCall(DefineFixed(result, v0), instr); 1060 return MarkAsCall(DefineFixed(result, v0), instr);
1073 } 1061 }
1074 1062
1075 1063
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 2423
2436 2424
2437 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2425 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2438 LOperand* object = UseRegister(instr->object()); 2426 LOperand* object = UseRegister(instr->object());
2439 LOperand* index = UseRegister(instr->index()); 2427 LOperand* index = UseRegister(instr->index());
2440 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2428 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2441 } 2429 }
2442 2430
2443 2431
2444 } } // namespace v8::internal 2432 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698