| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Generate the code for the stub. | 56 // Generate the code for the stub. |
| 57 masm->set_generating_stub(true); | 57 masm->set_generating_stub(true); |
| 58 Generate(masm); | 58 Generate(masm); |
| 59 } | 59 } |
| 60 | 60 |
| 61 | 61 |
| 62 void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) { | 62 void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) { |
| 63 code->set_major_key(MajorKey()); | 63 code->set_major_key(MajorKey()); |
| 64 | 64 |
| 65 PROFILE(CodeCreateEvent(Logger::STUB_TAG, code, GetName())); | 65 PROFILE(ISOLATE, CodeCreateEvent(Logger::STUB_TAG, code, GetName())); |
| 66 GDBJIT(AddCode(GDBJITInterface::STUB, GetName(), code)); | 66 GDBJIT(AddCode(GDBJITInterface::STUB, GetName(), code)); |
| 67 COUNTERS->total_stubs_code_size()->Increment(code->instruction_size()); | 67 COUNTERS->total_stubs_code_size()->Increment(code->instruction_size()); |
| 68 | 68 |
| 69 #ifdef ENABLE_DISASSEMBLER | 69 #ifdef ENABLE_DISASSEMBLER |
| 70 if (FLAG_print_code_stubs) { | 70 if (FLAG_print_code_stubs) { |
| 71 #ifdef DEBUG | 71 #ifdef DEBUG |
| 72 Print(); | 72 Print(); |
| 73 #endif | 73 #endif |
| 74 code->Disassemble(GetName()); | 74 code->Disassemble(GetName()); |
| 75 PrintF("\n"); | 75 PrintF("\n"); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), | 224 OS::SNPrintF(Vector<char>(name_, kMaxNameLength), |
| 225 "InstanceofStub%s%s%s", | 225 "InstanceofStub%s%s%s", |
| 226 args, | 226 args, |
| 227 inline_check, | 227 inline_check, |
| 228 return_true_false_object); | 228 return_true_false_object); |
| 229 return name_; | 229 return name_; |
| 230 } | 230 } |
| 231 | 231 |
| 232 | 232 |
| 233 } } // namespace v8::internal | 233 } } // namespace v8::internal |
| OLD | NEW |