| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ASSERT(is_done()); | 81 ASSERT(is_done()); |
| 82 code->set_stack_slots(GetStackSlotCount()); | 82 code->set_stack_slots(GetStackSlotCount()); |
| 83 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 83 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
| 84 PopulateDeoptimizationData(code); | 84 PopulateDeoptimizationData(code); |
| 85 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); | 85 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 void LCodeGen::Abort(const char* format, ...) { | 89 void LCodeGen::Abort(const char* format, ...) { |
| 90 if (FLAG_trace_bailout) { | 90 if (FLAG_trace_bailout) { |
| 91 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); | 91 SmartArrayPointer<char> name( |
| 92 info()->shared_info()->DebugName()->ToCString()); |
| 92 PrintF("Aborting LCodeGen in @\"%s\": ", *name); | 93 PrintF("Aborting LCodeGen in @\"%s\": ", *name); |
| 93 va_list arguments; | 94 va_list arguments; |
| 94 va_start(arguments, format); | 95 va_start(arguments, format); |
| 95 OS::VPrint(format, arguments); | 96 OS::VPrint(format, arguments); |
| 96 va_end(arguments); | 97 va_end(arguments); |
| 97 PrintF("\n"); | 98 PrintF("\n"); |
| 98 } | 99 } |
| 99 status_ = ABORTED; | 100 status_ = ABORTED; |
| 100 } | 101 } |
| 101 | 102 |
| (...skipping 4275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4377 env->deoptimization_index()); | 4378 env->deoptimization_index()); |
| 4378 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4379 } | 4380 } |
| 4380 | 4381 |
| 4381 | 4382 |
| 4382 #undef __ | 4383 #undef __ |
| 4383 | 4384 |
| 4384 } } // namespace v8::internal | 4385 } } // namespace v8::internal |
| 4385 | 4386 |
| 4386 #endif // V8_TARGET_ARCH_IA32 | 4387 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |