| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 | 261 |
| 262 bool LCodeGen::GenerateDeferredCode() { | 262 bool LCodeGen::GenerateDeferredCode() { |
| 263 DCHECK(is_generating()); | 263 DCHECK(is_generating()); |
| 264 if (deferred_.length() > 0) { | 264 if (deferred_.length() > 0) { |
| 265 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 265 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
| 266 LDeferredCode* code = deferred_[i]; | 266 LDeferredCode* code = deferred_[i]; |
| 267 | 267 |
| 268 HValue* value = | 268 HValue* value = |
| 269 instructions_->at(code->instruction_index())->hydrogen_value(); | 269 instructions_->at(code->instruction_index())->hydrogen_value(); |
| 270 RecordAndWritePosition( | 270 RecordAndWritePosition(value->position()); |
| 271 chunk()->graph()->SourcePositionToScriptPosition(value->position())); | |
| 272 | 271 |
| 273 Comment(";;; <@%d,#%d> " | 272 Comment(";;; <@%d,#%d> " |
| 274 "-------------------- Deferred %s --------------------", | 273 "-------------------- Deferred %s --------------------", |
| 275 code->instruction_index(), | 274 code->instruction_index(), |
| 276 code->instr()->hydrogen_value()->id(), | 275 code->instr()->hydrogen_value()->id(), |
| 277 code->instr()->Mnemonic()); | 276 code->instr()->Mnemonic()); |
| 278 __ bind(code->entry()); | 277 __ bind(code->entry()); |
| 279 if (NeedsDeferredFrame()) { | 278 if (NeedsDeferredFrame()) { |
| 280 Comment(";;; Build frame"); | 279 Comment(";;; Build frame"); |
| 281 DCHECK(!frame_is_built_); | 280 DCHECK(!frame_is_built_); |
| (...skipping 5137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5419 __ lw(result, FieldMemOperand(scratch, | 5418 __ lw(result, FieldMemOperand(scratch, |
| 5420 FixedArray::kHeaderSize - kPointerSize)); | 5419 FixedArray::kHeaderSize - kPointerSize)); |
| 5421 __ bind(deferred->exit()); | 5420 __ bind(deferred->exit()); |
| 5422 __ bind(&done); | 5421 __ bind(&done); |
| 5423 } | 5422 } |
| 5424 | 5423 |
| 5425 #undef __ | 5424 #undef __ |
| 5426 | 5425 |
| 5427 } // namespace internal | 5426 } // namespace internal |
| 5428 } // namespace v8 | 5427 } // namespace v8 |
| OLD | NEW |