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

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

Issue 6788007: Fix multi-isolate build: (Closed)
Patch Set: Created 9 years, 8 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
« no previous file with comments | « src/deoptimizer.cc ('k') | src/hydrogen.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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 Handle<Script> script = info->script(); 279 Handle<Script> script = info->script();
280 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 280 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
281 int len = String::cast(script->source())->length(); 281 int len = String::cast(script->source())->length();
282 isolate->counters()->total_full_codegen_source_size()->Increment(len); 282 isolate->counters()->total_full_codegen_source_size()->Increment(len);
283 } 283 }
284 if (FLAG_trace_codegen) { 284 if (FLAG_trace_codegen) {
285 PrintF("Full Compiler - "); 285 PrintF("Full Compiler - ");
286 } 286 }
287 CodeGenerator::MakeCodePrologue(info); 287 CodeGenerator::MakeCodePrologue(info);
288 const int kInitialBufferSize = 4 * KB; 288 const int kInitialBufferSize = 4 * KB;
289 MacroAssembler masm(NULL, kInitialBufferSize); 289 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize);
290 #ifdef ENABLE_GDB_JIT_INTERFACE 290 #ifdef ENABLE_GDB_JIT_INTERFACE
291 masm.positions_recorder()->StartGDBJITLineInfoRecording(); 291 masm.positions_recorder()->StartGDBJITLineInfoRecording();
292 #endif 292 #endif
293 293
294 FullCodeGenerator cgen(&masm); 294 FullCodeGenerator cgen(&masm);
295 cgen.Generate(info); 295 cgen.Generate(info);
296 if (cgen.HasStackOverflow()) { 296 if (cgen.HasStackOverflow()) {
297 ASSERT(!isolate->has_pending_exception()); 297 ASSERT(!isolate->has_pending_exception());
298 return false; 298 return false;
299 } 299 }
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 __ Drop(stack_depth); 1376 __ Drop(stack_depth);
1377 __ PopTryHandler(); 1377 __ PopTryHandler();
1378 return 0; 1378 return 0;
1379 } 1379 }
1380 1380
1381 1381
1382 #undef __ 1382 #undef __
1383 1383
1384 1384
1385 } } // namespace v8::internal 1385 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698