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

Side by Side Diff: src/codegen.cc

Issue 2918001: Move serialized scope info from Code object to SharedFunctionInfo. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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 | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #endif // DEBUG 155 #endif // DEBUG
156 } 156 }
157 157
158 158
159 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, 159 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
160 Code::Flags flags, 160 Code::Flags flags,
161 CompilationInfo* info) { 161 CompilationInfo* info) {
162 // Allocate and install the code. 162 // Allocate and install the code.
163 CodeDesc desc; 163 CodeDesc desc;
164 masm->GetCode(&desc); 164 masm->GetCode(&desc);
165 ZoneScopeInfo sinfo(info->scope()); 165 Handle<Code> code = Factory::NewCode(desc, flags, masm->CodeObject());
166 Handle<Code> code =
167 Factory::NewCode(desc, &sinfo, flags, masm->CodeObject());
168 166
169 #ifdef ENABLE_DISASSEMBLER 167 #ifdef ENABLE_DISASSEMBLER
170 bool print_code = Bootstrapper::IsActive() 168 bool print_code = Bootstrapper::IsActive()
171 ? FLAG_print_builtin_code 169 ? FLAG_print_builtin_code
172 : FLAG_print_code; 170 : FLAG_print_code;
173 if (print_code) { 171 if (print_code) {
174 // Print the source code if available. 172 // Print the source code if available.
175 Handle<Script> script = info->script(); 173 Handle<Script> script = info->script();
176 FunctionLiteral* function = info->function(); 174 FunctionLiteral* function = info->function();
177 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 175 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 } 507 }
510 } 508 }
511 509
512 510
513 void ApiGetterEntryStub::SetCustomCache(Code* value) { 511 void ApiGetterEntryStub::SetCustomCache(Code* value) {
514 info()->set_load_stub_cache(value); 512 info()->set_load_stub_cache(value);
515 } 513 }
516 514
517 515
518 } } // namespace v8::internal 516 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698