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

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

Issue 6255008: GDBJIT: do not register NULL lineinfo when gdbjit integration is disabled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 11 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/codegen.cc ('k') | no next file » | 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_start(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 (!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
318 return !code.is_null(); 318 return !code.is_null();
319 } 319 }
320 320
321 321
(...skipping 1063 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/codegen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698