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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |