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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, | 190 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
191 Code::Flags flags, | 191 Code::Flags flags, |
192 CompilationInfo* info) { | 192 CompilationInfo* info) { |
193 // Allocate and install the code. | 193 // Allocate and install the code. |
194 CodeDesc desc; | 194 CodeDesc desc; |
195 masm->GetCode(&desc); | 195 masm->GetCode(&desc); |
196 ZoneScopeInfo sinfo(info->scope()); | 196 ZoneScopeInfo sinfo(info->scope()); |
197 Handle<Code> code = | 197 Handle<Code> code = |
198 Factory::NewCode(desc, &sinfo, flags, masm->CodeObject()); | 198 Factory::NewCode(desc, &sinfo, flags, masm->CodeObject()); |
199 | 199 |
200 // Add unresolved entries in the code to the fixup list. | |
201 Bootstrapper::AddFixup(*code, masm); | |
202 | |
203 #ifdef ENABLE_DISASSEMBLER | 200 #ifdef ENABLE_DISASSEMBLER |
204 bool print_code = Bootstrapper::IsActive() | 201 bool print_code = Bootstrapper::IsActive() |
205 ? FLAG_print_builtin_code | 202 ? FLAG_print_builtin_code |
206 : FLAG_print_code; | 203 : FLAG_print_code; |
207 if (print_code) { | 204 if (print_code) { |
208 // Print the source code if available. | 205 // Print the source code if available. |
209 Handle<Script> script = info->script(); | 206 Handle<Script> script = info->script(); |
210 FunctionLiteral* function = info->function(); | 207 FunctionLiteral* function = info->function(); |
211 if (!script->IsUndefined() && !script->source()->IsUndefined()) { | 208 if (!script->IsUndefined() && !script->source()->IsUndefined()) { |
212 PrintF("--- Raw source ---\n"); | 209 PrintF("--- Raw source ---\n"); |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 } | 517 } |
521 } | 518 } |
522 | 519 |
523 | 520 |
524 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 521 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
525 info()->set_load_stub_cache(value); | 522 info()->set_load_stub_cache(value); |
526 } | 523 } |
527 | 524 |
528 | 525 |
529 } } // namespace v8::internal | 526 } } // namespace v8::internal |
OLD | NEW |