| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 LInstruction* instr = instructions_->at(current_instruction_); | 237 LInstruction* instr = instructions_->at(current_instruction_); |
| 238 if (instr->IsLabel()) { | 238 if (instr->IsLabel()) { |
| 239 LLabel* label = LLabel::cast(instr); | 239 LLabel* label = LLabel::cast(instr); |
| 240 emit_instructions = !label->HasReplacement(); | 240 emit_instructions = !label->HasReplacement(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 if (emit_instructions) { | 243 if (emit_instructions) { |
| 244 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic()); | 244 Comment(";;; @%d: %s.", current_instruction_, instr->Mnemonic()); |
| 245 instr->CompileToNative(this); | 245 instr->CompileToNative(this); |
| 246 } | 246 } |
| 247 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 248 if (instr->HasPointerMap()) { |
| 249 LPointerMap* pointers = instr->pointer_map(); |
| 250 if (pointers->position() != RelocInfo::kNoPosition) { |
| 251 RecordPosition(pointers->position()); |
| 252 } |
| 253 } |
| 254 #endif |
| 247 } | 255 } |
| 248 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); | 256 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); |
| 249 return !is_aborted(); | 257 return !is_aborted(); |
| 250 } | 258 } |
| 251 | 259 |
| 252 | 260 |
| 253 bool LCodeGen::GenerateJumpTable() { | 261 bool LCodeGen::GenerateJumpTable() { |
| 254 for (int i = 0; i < jump_table_.length(); i++) { | 262 for (int i = 0; i < jump_table_.length(); i++) { |
| 255 __ bind(&jump_table_[i].label); | 263 __ bind(&jump_table_[i].label); |
| 256 __ Jump(jump_table_[i].address, RelocInfo::RUNTIME_ENTRY); | 264 __ Jump(jump_table_[i].address, RelocInfo::RUNTIME_ENTRY); |
| (...skipping 4820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5077 FixedArray::kHeaderSize - kPointerSize)); | 5085 FixedArray::kHeaderSize - kPointerSize)); |
| 5078 __ bind(&done); | 5086 __ bind(&done); |
| 5079 } | 5087 } |
| 5080 | 5088 |
| 5081 | 5089 |
| 5082 #undef __ | 5090 #undef __ |
| 5083 | 5091 |
| 5084 } } // namespace v8::internal | 5092 } } // namespace v8::internal |
| 5085 | 5093 |
| 5086 #endif // V8_TARGET_ARCH_X64 | 5094 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |