| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 return GeneratePrologue() && | 46 return GeneratePrologue() && |
| 47 GenerateBody() && | 47 GenerateBody() && |
| 48 GenerateDeferredCode() && | 48 GenerateDeferredCode() && |
| 49 GenerateSafepointTable(); | 49 GenerateSafepointTable(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 void LCodeGen::FinishCode(Handle<Code> code) { | 53 void LCodeGen::FinishCode(Handle<Code> code) { |
| 54 ASSERT(is_done()); | 54 ASSERT(is_done()); |
| 55 code->set_stack_slots(StackSlotCount()); | 55 code->set_stack_slots(StackSlotCount()); |
| 56 code->set_safepoint_table_start(safepoints_.GetCodeOffset()); | 56 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
| 57 PopulateDeoptimizationData(code); | 57 PopulateDeoptimizationData(code); |
| 58 } | 58 } |
| 59 | 59 |
| 60 | 60 |
| 61 void LCodeGen::Abort(const char* format, ...) { | 61 void LCodeGen::Abort(const char* format, ...) { |
| 62 if (FLAG_trace_bailout) { | 62 if (FLAG_trace_bailout) { |
| 63 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); | 63 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); |
| 64 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); | 64 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); |
| 65 va_list arguments; | 65 va_list arguments; |
| 66 va_start(arguments, format); | 66 va_start(arguments, format); |
| (...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2006 | 2006 |
| 2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 2008 Abort("Unimplemented: %s", "DoOsrEntry"); | 2008 Abort("Unimplemented: %s", "DoOsrEntry"); |
| 2009 } | 2009 } |
| 2010 | 2010 |
| 2011 #undef __ | 2011 #undef __ |
| 2012 | 2012 |
| 2013 } } // namespace v8::internal | 2013 } } // namespace v8::internal |
| 2014 | 2014 |
| 2015 #endif // V8_TARGET_ARCH_X64 | 2015 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |