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

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

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 years 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/compiler.h ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 code->set_handler_table(*cgen.handler_table()); 289 code->set_handler_table(*cgen.handler_table());
290 #ifdef ENABLE_DEBUGGER_SUPPORT 290 #ifdef ENABLE_DEBUGGER_SUPPORT
291 code->set_has_debug_break_slots( 291 code->set_has_debug_break_slots(
292 info->isolate()->debugger()->IsDebuggerActive()); 292 info->isolate()->debugger()->IsDebuggerActive());
293 code->set_compiled_optimizable(info->IsOptimizable()); 293 code->set_compiled_optimizable(info->IsOptimizable());
294 #endif // ENABLE_DEBUGGER_SUPPORT 294 #endif // ENABLE_DEBUGGER_SUPPORT
295 code->set_allow_osr_at_loop_nesting_level(0); 295 code->set_allow_osr_at_loop_nesting_level(0);
296 code->set_stack_check_table_offset(table_offset); 296 code->set_stack_check_table_offset(table_offset);
297 CodeGenerator::PrintCode(code, info); 297 CodeGenerator::PrintCode(code, info);
298 info->SetCode(code); // May be an empty handle. 298 info->SetCode(code); // May be an empty handle.
299 if (!code.is_null()) {
300 isolate->runtime_profiler()->NotifyCodeGenerated(code->instruction_size());
301 }
299 #ifdef ENABLE_GDB_JIT_INTERFACE 302 #ifdef ENABLE_GDB_JIT_INTERFACE
300 if (FLAG_gdbjit && !code.is_null()) { 303 if (FLAG_gdbjit && !code.is_null()) {
301 GDBJITLineInfo* lineinfo = 304 GDBJITLineInfo* lineinfo =
302 masm.positions_recorder()->DetachGDBJITLineInfo(); 305 masm.positions_recorder()->DetachGDBJITLineInfo();
303 306
304 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); 307 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo));
305 } 308 }
306 #endif 309 #endif
307 return !code.is_null(); 310 return !code.is_null();
308 } 311 }
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 } 1305 }
1303 1306
1304 return false; 1307 return false;
1305 } 1308 }
1306 1309
1307 1310
1308 #undef __ 1311 #undef __
1309 1312
1310 1313
1311 } } // namespace v8::internal 1314 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698