| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 LInstruction* instr = instructions_->at(current_instruction_); | 298 LInstruction* instr = instructions_->at(current_instruction_); |
| 299 if (instr->IsLabel()) { | 299 if (instr->IsLabel()) { |
| 300 LLabel* label = LLabel::cast(instr); | 300 LLabel* label = LLabel::cast(instr); |
| 301 emit_instructions = !label->HasReplacement(); | 301 emit_instructions = !label->HasReplacement(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 if (emit_instructions) { | 304 if (emit_instructions) { |
| 305 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic()); | 305 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic()); |
| 306 instr->CompileToNative(this); | 306 instr->CompileToNative(this); |
| 307 } | 307 } |
| 308 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 309 if (instr->HasPointerMap()) { |
| 310 LPointerMap* pointers = instr->pointer_map(); |
| 311 if (pointers->position() != RelocInfo::kNoPosition) { |
| 312 RecordPosition(pointers->position()); |
| 313 } |
| 314 } |
| 315 #endif |
| 308 } | 316 } |
| 309 EnsureSpaceForLazyDeopt(); | 317 EnsureSpaceForLazyDeopt(); |
| 310 return !is_aborted(); | 318 return !is_aborted(); |
| 311 } | 319 } |
| 312 | 320 |
| 313 | 321 |
| 314 bool LCodeGen::GenerateDeferredCode() { | 322 bool LCodeGen::GenerateDeferredCode() { |
| 315 ASSERT(is_generating()); | 323 ASSERT(is_generating()); |
| 316 if (deferred_.length() > 0) { | 324 if (deferred_.length() > 0) { |
| 317 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { | 325 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { |
| (...skipping 5041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5359 FixedArray::kHeaderSize - kPointerSize)); | 5367 FixedArray::kHeaderSize - kPointerSize)); |
| 5360 __ bind(&done); | 5368 __ bind(&done); |
| 5361 } | 5369 } |
| 5362 | 5370 |
| 5363 | 5371 |
| 5364 #undef __ | 5372 #undef __ |
| 5365 | 5373 |
| 5366 } } // namespace v8::internal | 5374 } } // namespace v8::internal |
| 5367 | 5375 |
| 5368 #endif // V8_TARGET_ARCH_IA32 | 5376 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |