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

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

Issue 12385014: Hydrogen stubs for array constructors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: We still generated the arrays with feature flag off. Fixed. Created 7 years, 8 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/arm/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 2424
2425 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2425 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2426 LParameter* result = new(zone()) LParameter; 2426 LParameter* result = new(zone()) LParameter;
2427 if (instr->kind() == HParameter::STACK_PARAMETER) { 2427 if (instr->kind() == HParameter::STACK_PARAMETER) {
2428 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2428 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2429 return DefineAsSpilled(result, spill_index); 2429 return DefineAsSpilled(result, spill_index);
2430 } else { 2430 } else {
2431 ASSERT(info()->IsStub()); 2431 ASSERT(info()->IsStub());
2432 CodeStubInterfaceDescriptor* descriptor = 2432 CodeStubInterfaceDescriptor* descriptor =
2433 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2433 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2434 Register reg = descriptor->register_params_[instr->index()]; 2434 int index = static_cast<int>(instr->index());
2435 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index);
2435 return DefineFixed(result, reg); 2436 return DefineFixed(result, reg);
2436 } 2437 }
2437 } 2438 }
2438 2439
2439 2440
2440 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2441 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2441 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. 2442 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width.
2442 if (spill_index > LUnallocated::kMaxFixedIndex) { 2443 if (spill_index > LUnallocated::kMaxFixedIndex) {
2443 Abort("Too many spill slots needed for OSR"); 2444 Abort("Too many spill slots needed for OSR");
2444 spill_index = 0; 2445 spill_index = 0;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 2614
2614 2615
2615 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2616 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2616 LOperand* object = UseRegister(instr->object()); 2617 LOperand* object = UseRegister(instr->object());
2617 LOperand* index = UseRegister(instr->index()); 2618 LOperand* index = UseRegister(instr->index());
2618 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2619 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2619 } 2620 }
2620 2621
2621 2622
2622 } } // namespace v8::internal 2623 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698