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

Side by Side Diff: src/full-codegen.cc

Issue 6334083: Streamline the code for patching optimized code for lazy deopt. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Rewrite the incorrect comment mentioning absolute calls. Created 9 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
« no previous file with comments | « src/disassembler.cc ('k') | src/ia32/deoptimizer-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 return false; 297 return false;
298 } 298 }
299 unsigned table_offset = cgen.EmitStackCheckTable(); 299 unsigned table_offset = cgen.EmitStackCheckTable();
300 300
301 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); 301 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP);
302 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); 302 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info);
303 code->set_optimizable(info->IsOptimizable()); 303 code->set_optimizable(info->IsOptimizable());
304 cgen.PopulateDeoptimizationData(code); 304 cgen.PopulateDeoptimizationData(code);
305 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 305 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
306 code->set_allow_osr_at_loop_nesting_level(0); 306 code->set_allow_osr_at_loop_nesting_level(0);
307 code->set_stack_check_table_start(table_offset); 307 code->set_stack_check_table_offset(table_offset);
308 CodeGenerator::PrintCode(code, info); 308 CodeGenerator::PrintCode(code, info);
309 info->SetCode(code); // may be an empty handle. 309 info->SetCode(code); // may be an empty handle.
310 #ifdef ENABLE_GDB_JIT_INTERFACE 310 #ifdef ENABLE_GDB_JIT_INTERFACE
311 if (FLAG_gdbjit && !code.is_null()) { 311 if (FLAG_gdbjit && !code.is_null()) {
312 GDBJITLineInfo* lineinfo = 312 GDBJITLineInfo* lineinfo =
313 masm.positions_recorder()->DetachGDBJITLineInfo(); 313 masm.positions_recorder()->DetachGDBJITLineInfo();
314 314
315 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); 315 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo));
316 } 316 }
317 #endif 317 #endif
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 __ Drop(stack_depth); 1385 __ Drop(stack_depth);
1386 __ PopTryHandler(); 1386 __ PopTryHandler();
1387 return 0; 1387 return 0;
1388 } 1388 }
1389 1389
1390 1390
1391 #undef __ 1391 #undef __
1392 1392
1393 1393
1394 } } // namespace v8::internal 1394 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/disassembler.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698