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

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

Issue 7229011: Slightly improve r8367, fix to overflow of on-stack replacement. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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 | « no previous file | src/compiler.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2115 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2116 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2116 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2117 return DefineAsSpilled(new LParameter, spill_index); 2117 return DefineAsSpilled(new LParameter, spill_index);
2118 } 2118 }
2119 2119
2120 2120
2121 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2121 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2122 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. 2122 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width.
2123 if (spill_index > LUnallocated::kMaxFixedIndex) { 2123 if (spill_index > LUnallocated::kMaxFixedIndex) {
2124 Abort("Too many spill slots needed for OSR"); 2124 Abort("Too many spill slots needed for OSR");
2125 spill_index = 0;
2125 } 2126 }
2126 return DefineAsSpilled(new LUnknownOSRValue, spill_index); 2127 return DefineAsSpilled(new LUnknownOSRValue, spill_index);
2127 } 2128 }
2128 2129
2129 2130
2130 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { 2131 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) {
2131 argument_count_ -= instr->argument_count(); 2132 argument_count_ -= instr->argument_count();
2132 return MarkAsCall(DefineFixed(new LCallStub, r0), instr); 2133 return MarkAsCall(DefineFixed(new LCallStub, r0), instr);
2133 } 2134 }
2134 2135
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 2234
2234 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2235 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2235 LOperand* key = UseRegisterAtStart(instr->key()); 2236 LOperand* key = UseRegisterAtStart(instr->key());
2236 LOperand* object = UseRegisterAtStart(instr->object()); 2237 LOperand* object = UseRegisterAtStart(instr->object());
2237 LIn* result = new LIn(key, object); 2238 LIn* result = new LIn(key, object);
2238 return MarkAsCall(DefineFixed(result, r0), instr); 2239 return MarkAsCall(DefineFixed(result, r0), instr);
2239 } 2240 }
2240 2241
2241 2242
2242 } } // namespace v8::internal 2243 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698