| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 #define __ ACCESS_MASM(masm_) | 61 #define __ ACCESS_MASM(masm_) |
| 62 | 62 |
| 63 | 63 |
| 64 void CodeGenerator::DeclareGlobals(Handle<FixedArray> a) { | 64 void CodeGenerator::DeclareGlobals(Handle<FixedArray> a) { |
| 65 UNIMPLEMENTED(); | 65 UNIMPLEMENTED(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void CodeGenerator::TestCodeGenerator() { | 68 void CodeGenerator::TestCodeGenerator() { |
| 69 // Generate code. | 69 // Generate code. |
| 70 ZoneScope zone_scope(DELETE_ON_EXIT); |
| 70 const int initial_buffer_size = 4 * KB; | 71 const int initial_buffer_size = 4 * KB; |
| 71 CodeGenerator cgen(initial_buffer_size, NULL, false); | 72 CodeGenerator cgen(initial_buffer_size, NULL, false); |
| 72 CodeGeneratorScope scope(&cgen); | 73 CodeGeneratorScope scope(&cgen); |
| 73 cgen.GenCode(NULL); | 74 cgen.GenCode(NULL); |
| 74 | 75 |
| 75 CodeDesc desc; | 76 CodeDesc desc; |
| 76 cgen.masm()->GetCode(&desc); | 77 cgen.masm()->GetCode(&desc); |
| 77 } | 78 } |
| 78 | 79 |
| 79 | 80 |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 | 596 |
| 596 // Restore frame pointer and return. | 597 // Restore frame pointer and return. |
| 597 __ pop(rbp); | 598 __ pop(rbp); |
| 598 __ ret(0); | 599 __ ret(0); |
| 599 } | 600 } |
| 600 | 601 |
| 601 | 602 |
| 602 #undef __ | 603 #undef __ |
| 603 | 604 |
| 604 } } // namespace v8::internal | 605 } } // namespace v8::internal |
| OLD | NEW |