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

Side by Side Diff: src/codegen.cc

Issue 594009: Always load the JavaScript builtins code entry from the JavaScript... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698