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

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

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM port Created 7 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
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 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2225 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2226 ASSERT(argument_count_ == 0); 2226 ASSERT(argument_count_ == 0);
2227 allocator_->MarkAsOsrEntry(); 2227 allocator_->MarkAsOsrEntry();
2228 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2228 current_block_->last_environment()->set_ast_id(instr->ast_id());
2229 return AssignEnvironment(new(zone()) LOsrEntry); 2229 return AssignEnvironment(new(zone()) LOsrEntry);
2230 } 2230 }
2231 2231
2232 2232
2233 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2233 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2234 LParameter* result = new(zone()) LParameter; 2234 LParameter* result = new(zone()) LParameter;
2235 if (info()->IsOptimizing()) { 2235 if (instr->kind() == HParameter::STACK_PARAMETER) {
2236 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2236 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2237 return DefineAsSpilled(result, spill_index); 2237 return DefineAsSpilled(result, spill_index);
2238 } else { 2238 } else {
2239 ASSERT(info()->IsStub()); 2239 ASSERT(info()->IsStub());
2240 CodeStubInterfaceDescriptor* descriptor = 2240 CodeStubInterfaceDescriptor* descriptor =
2241 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2241 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2242 Register reg = descriptor->register_params_[instr->index()]; 2242 Register reg = descriptor->register_params_[instr->index()];
2243 return DefineFixed(result, reg); 2243 return DefineFixed(result, reg);
2244 } 2244 }
2245 } 2245 }
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2413 2413
2414 2414
2415 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2415 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2416 LOperand* object = UseRegister(instr->object()); 2416 LOperand* object = UseRegister(instr->object());
2417 LOperand* index = UseRegister(instr->index()); 2417 LOperand* index = UseRegister(instr->index());
2418 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2418 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2419 } 2419 }
2420 2420
2421 2421
2422 } } // namespace v8::internal 2422 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/code-stubs.h » ('j') | src/frames.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698