OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 } | 266 } |
267 if (!emit_instructions) continue; | 267 if (!emit_instructions) continue; |
268 | 268 |
269 if (FLAG_code_comments && instr->HasInterestingComment(this)) { | 269 if (FLAG_code_comments && instr->HasInterestingComment(this)) { |
270 Comment(";;; <@%d,#%d> %s", | 270 Comment(";;; <@%d,#%d> %s", |
271 current_instruction_, | 271 current_instruction_, |
272 instr->hydrogen_value()->id(), | 272 instr->hydrogen_value()->id(), |
273 instr->Mnemonic()); | 273 instr->Mnemonic()); |
274 } | 274 } |
275 | 275 |
| 276 int pos = instr->position(); |
| 277 if (pos >= 0) RecordPosition(pos); |
| 278 |
276 instr->CompileToNative(this); | 279 instr->CompileToNative(this); |
277 } | 280 } |
278 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); | 281 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); |
279 return !is_aborted(); | 282 return !is_aborted(); |
280 } | 283 } |
281 | 284 |
282 | 285 |
283 bool LCodeGen::GenerateJumpTable() { | 286 bool LCodeGen::GenerateJumpTable() { |
284 Label needs_frame; | 287 Label needs_frame; |
285 if (jump_table_.length() > 0) { | 288 if (jump_table_.length() > 0) { |
(...skipping 5251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5537 FixedArray::kHeaderSize - kPointerSize)); | 5540 FixedArray::kHeaderSize - kPointerSize)); |
5538 __ bind(&done); | 5541 __ bind(&done); |
5539 } | 5542 } |
5540 | 5543 |
5541 | 5544 |
5542 #undef __ | 5545 #undef __ |
5543 | 5546 |
5544 } } // namespace v8::internal | 5547 } } // namespace v8::internal |
5545 | 5548 |
5546 #endif // V8_TARGET_ARCH_X64 | 5549 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |