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

Side by Side Diff: src/codegen.cc

Issue 113519: Changed FuncNameInferrer and ScopeInfo to support zone allocation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/factory.h » ('j') | src/factory.h » ('J')
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (cgen.HasStackOverflow()) { 163 if (cgen.HasStackOverflow()) {
164 ASSERT(!Top::has_pending_exception()); 164 ASSERT(!Top::has_pending_exception());
165 return Handle<Code>::null(); 165 return Handle<Code>::null();
166 } 166 }
167 167
168 // Allocate and install the code. Time the rest of this function as 168 // Allocate and install the code. Time the rest of this function as
169 // code creation. 169 // code creation.
170 HistogramTimerScope timer(&Counters::code_creation); 170 HistogramTimerScope timer(&Counters::code_creation);
171 CodeDesc desc; 171 CodeDesc desc;
172 cgen.masm()->GetCode(&desc); 172 cgen.masm()->GetCode(&desc);
173 ScopeInfo<> sinfo(flit->scope()); 173 ZoneScopeInfo sinfo(flit->scope());
174 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); 174 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION);
175 Handle<Code> code = Factory::NewCode(desc, 175 Handle<Code> code = Factory::NewCode(desc,
176 &sinfo, 176 &sinfo,
177 flags, 177 flags,
178 cgen.masm()->CodeObject()); 178 cgen.masm()->CodeObject());
179 179
180 // Add unresolved entries in the code to the fixup list. 180 // Add unresolved entries in the code to the fixup list.
181 Bootstrapper::AddFixup(*code, cgen.masm()); 181 Bootstrapper::AddFixup(*code, cgen.masm());
182 182
183 #ifdef ENABLE_DISASSEMBLER 183 #ifdef ENABLE_DISASSEMBLER
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 633 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
634 switch (type_) { 634 switch (type_) {
635 case READ_LENGTH: GenerateReadLength(masm); break; 635 case READ_LENGTH: GenerateReadLength(masm); break;
636 case READ_ELEMENT: GenerateReadElement(masm); break; 636 case READ_ELEMENT: GenerateReadElement(masm); break;
637 case NEW_OBJECT: GenerateNewObject(masm); break; 637 case NEW_OBJECT: GenerateNewObject(masm); break;
638 } 638 }
639 } 639 }
640 640
641 641
642 } } // namespace v8::internal 642 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/factory.h » ('j') | src/factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698