| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 LPointerMap* pointers = instr->pointer_map(); | 308 LPointerMap* pointers = instr->pointer_map(); |
| 309 RecordPosition(pointers->position()); | 309 RecordPosition(pointers->position()); |
| 310 __ call(code, mode); | 310 __ call(code, mode); |
| 311 RegisterLazyDeoptimization(instr); | 311 RegisterLazyDeoptimization(instr); |
| 312 } else { | 312 } else { |
| 313 LPointerMap no_pointers(0); | 313 LPointerMap no_pointers(0); |
| 314 RecordPosition(no_pointers.position()); | 314 RecordPosition(no_pointers.position()); |
| 315 __ call(code, mode); | 315 __ call(code, mode); |
| 316 RecordSafepoint(&no_pointers, Safepoint::kNoDeoptimizationIndex); | 316 RecordSafepoint(&no_pointers, Safepoint::kNoDeoptimizationIndex); |
| 317 } | 317 } |
| 318 | |
| 319 // Signal that we don't inline smi code before these stubs in the | |
| 320 // optimizing code generator. | |
| 321 if (code->kind() == Code::TYPE_RECORDING_BINARY_OP_IC || | |
| 322 code->kind() == Code::COMPARE_IC) { | |
| 323 __ nop(); | |
| 324 } | |
| 325 } | 318 } |
| 326 | 319 |
| 327 | 320 |
| 328 void LCodeGen::CallRuntime(Runtime::Function* function, | 321 void LCodeGen::CallRuntime(Runtime::Function* function, |
| 329 int num_arguments, | 322 int num_arguments, |
| 330 LInstruction* instr) { | 323 LInstruction* instr) { |
| 331 ASSERT(instr != NULL); | 324 ASSERT(instr != NULL); |
| 332 LPointerMap* pointers = instr->pointer_map(); | 325 LPointerMap* pointers = instr->pointer_map(); |
| 333 ASSERT(pointers != NULL); | 326 ASSERT(pointers != NULL); |
| 334 RecordPosition(pointers->position()); | 327 RecordPosition(pointers->position()); |
| (...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3162 ASSERT(!environment->HasBeenRegistered()); | 3155 ASSERT(!environment->HasBeenRegistered()); |
| 3163 RegisterEnvironmentForDeoptimization(environment); | 3156 RegisterEnvironmentForDeoptimization(environment); |
| 3164 ASSERT(osr_pc_offset_ == -1); | 3157 ASSERT(osr_pc_offset_ == -1); |
| 3165 osr_pc_offset_ = masm()->pc_offset(); | 3158 osr_pc_offset_ = masm()->pc_offset(); |
| 3166 } | 3159 } |
| 3167 | 3160 |
| 3168 | 3161 |
| 3169 #undef __ | 3162 #undef __ |
| 3170 | 3163 |
| 3171 } } // namespace v8::internal | 3164 } } // namespace v8::internal |
| OLD | NEW |