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

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

Issue 10836133: Inline simple setter calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made VisitReturnStatement and TryInline more similar. Simplified AddLeaveInlined. Created 8 years, 4 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 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 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 2153
2154 2154
2155 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { 2155 LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
2156 HEnvironment* outer = current_block_->last_environment(); 2156 HEnvironment* outer = current_block_->last_environment();
2157 HConstant* undefined = graph()->GetConstantUndefined(); 2157 HConstant* undefined = graph()->GetConstantUndefined();
2158 HEnvironment* inner = outer->CopyForInlining(instr->closure(), 2158 HEnvironment* inner = outer->CopyForInlining(instr->closure(),
2159 instr->arguments_count(), 2159 instr->arguments_count(),
2160 instr->function(), 2160 instr->function(),
2161 undefined, 2161 undefined,
2162 instr->call_kind(), 2162 instr->call_kind(),
2163 instr->is_construct()); 2163 instr->return_handling());
2164 if (instr->arguments_var() != NULL) { 2164 if (instr->arguments_var() != NULL) {
2165 inner->Bind(instr->arguments_var(), graph()->GetArgumentsObject()); 2165 inner->Bind(instr->arguments_var(), graph()->GetArgumentsObject());
2166 } 2166 }
2167 current_block_->UpdateEnvironment(inner); 2167 current_block_->UpdateEnvironment(inner);
2168 chunk_->AddInlinedClosure(instr->closure()); 2168 chunk_->AddInlinedClosure(instr->closure());
2169 return NULL; 2169 return NULL;
2170 } 2170 }
2171 2171
2172 2172
2173 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2173 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 2220
2221 2221
2222 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2222 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2223 LOperand* object = UseRegister(instr->object()); 2223 LOperand* object = UseRegister(instr->object());
2224 LOperand* index = UseRegister(instr->index()); 2224 LOperand* index = UseRegister(instr->index());
2225 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2225 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2226 } 2226 }
2227 2227
2228 2228
2229 } } // namespace v8::internal 2229 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698