| OLD | NEW |
| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 case FAST_HOLEY_ELEMENTS: | 256 case FAST_HOLEY_ELEMENTS: |
| 257 case DICTIONARY_ELEMENTS: | 257 case DICTIONARY_ELEMENTS: |
| 258 case NON_STRICT_ARGUMENTS_ELEMENTS: | 258 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 259 return kPointerSizeLog2; | 259 return kPointerSizeLog2; |
| 260 } | 260 } |
| 261 UNREACHABLE(); | 261 UNREACHABLE(); |
| 262 return 0; | 262 return 0; |
| 263 } | 263 } |
| 264 | 264 |
| 265 | 265 |
| 266 int StackSlotOffset(int index) { | 266 int StackSlotOffset(int index, int fp_sp_delta) { |
| 267 ASSERT(fp_sp_delta > 0); |
| 267 if (index >= 0) { | 268 if (index >= 0) { |
| 268 // Local or spill slot. Skip the frame pointer, function, and | 269 // Local or spill slot. Skip the frame pointer, function, and |
| 269 // context in the fixed part of the frame. | 270 // context in the fixed part of the frame. |
| 270 return -(index + 3) * kPointerSize; | 271 return -(index + 3) * kPointerSize + fp_sp_delta; |
| 271 } else { | 272 } else { |
| 272 // Incoming parameter. Skip the return address. | 273 // Incoming parameter. Skip the return address. |
| 273 return -(index + 1) * kPointerSize + kFPOnStackSize + kPCOnStackSize; | 274 return -(index + 1) * kPointerSize + kFPOnStackSize + |
| 275 kPCOnStackSize + fp_sp_delta; |
| 274 } | 276 } |
| 275 } | 277 } |
| 276 | 278 |
| 277 | 279 |
| 278 LChunk::LChunk(CompilationInfo* info, HGraph* graph) | 280 LChunk::LChunk(CompilationInfo* info, HGraph* graph) |
| 279 : spill_slot_count_(0), | 281 : spill_slot_count_(0), |
| 280 info_(info), | 282 info_(info), |
| 281 graph_(graph), | 283 graph_(graph), |
| 282 instructions_(32, graph->zone()), | 284 instructions_(32, graph->zone()), |
| 283 pointer_maps_(8, graph->zone()), | 285 pointer_maps_(8, graph->zone()), |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 | 505 |
| 504 | 506 |
| 505 LPhase::~LPhase() { | 507 LPhase::~LPhase() { |
| 506 if (ShouldProduceTraceOutput()) { | 508 if (ShouldProduceTraceOutput()) { |
| 507 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 509 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 508 } | 510 } |
| 509 } | 511 } |
| 510 | 512 |
| 511 | 513 |
| 512 } } // namespace v8::internal | 514 } } // namespace v8::internal |
| OLD | NEW |