Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: src/x64/codegen-x64.cc

Issue 122033: X64: Adds zone scope before creating codegenerator for testing. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698