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

Side by Side Diff: src/ia32/lithium-ia32.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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2310 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2311 ASSERT(argument_count_ == 0); 2311 ASSERT(argument_count_ == 0);
2312 allocator_->MarkAsOsrEntry(); 2312 allocator_->MarkAsOsrEntry();
2313 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2313 current_block_->last_environment()->set_ast_id(instr->ast_id());
2314 return AssignEnvironment(new(zone()) LOsrEntry); 2314 return AssignEnvironment(new(zone()) LOsrEntry);
2315 } 2315 }
2316 2316
2317 2317
2318 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2318 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2319 LParameter* result = new(zone()) LParameter; 2319 LParameter* result = new(zone()) LParameter;
2320 if (info()->IsOptimizing()) { 2320 if (instr->kind() == HParameter::STACK_PARAMETER) {
2321 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2321 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2322 return DefineAsSpilled(result, spill_index); 2322 return DefineAsSpilled(result, spill_index);
2323 } else { 2323 } else {
2324 ASSERT(info()->IsStub()); 2324 ASSERT(info()->IsStub());
2325 CodeStubInterfaceDescriptor* descriptor = 2325 CodeStubInterfaceDescriptor* descriptor =
2326 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2326 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2327 Register reg = descriptor->register_params_[instr->index()]; 2327 Register reg = descriptor->register_params_[instr->index()];
2328 return DefineFixed(result, reg); 2328 return DefineFixed(result, reg);
2329 } 2329 }
2330 } 2330 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2511 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2511 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2512 LOperand* object = UseRegister(instr->object()); 2512 LOperand* object = UseRegister(instr->object());
2513 LOperand* index = UseTempRegister(instr->index()); 2513 LOperand* index = UseTempRegister(instr->index());
2514 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2514 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2515 } 2515 }
2516 2516
2517 2517
2518 } } // namespace v8::internal 2518 } } // namespace v8::internal
2519 2519
2520 #endif // V8_TARGET_ARCH_IA32 2520 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/ia32/deoptimizer-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698