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

Side by Side Diff: src/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/code-stubs.cc ('k') | src/deoptimizer.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 int len = String::cast(script->source())->length(); 241 int len = String::cast(script->source())->length();
242 Counters* counters = info->isolate()->counters(); 242 Counters* counters = info->isolate()->counters();
243 counters->total_old_codegen_source_size()->Increment(len); 243 counters->total_old_codegen_source_size()->Increment(len);
244 } 244 }
245 if (FLAG_trace_codegen) { 245 if (FLAG_trace_codegen) {
246 PrintF("Classic Compiler - "); 246 PrintF("Classic Compiler - ");
247 } 247 }
248 MakeCodePrologue(info); 248 MakeCodePrologue(info);
249 // Generate code. 249 // Generate code.
250 const int kInitialBufferSize = 4 * KB; 250 const int kInitialBufferSize = 4 * KB;
251 MacroAssembler masm(NULL, kInitialBufferSize); 251 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize);
252 #ifdef ENABLE_GDB_JIT_INTERFACE 252 #ifdef ENABLE_GDB_JIT_INTERFACE
253 masm.positions_recorder()->StartGDBJITLineInfoRecording(); 253 masm.positions_recorder()->StartGDBJITLineInfoRecording();
254 #endif 254 #endif
255 CodeGenerator cgen(&masm); 255 CodeGenerator cgen(&masm);
256 CodeGeneratorScope scope(Isolate::Current(), &cgen); 256 CodeGeneratorScope scope(Isolate::Current(), &cgen);
257 cgen.Generate(info); 257 cgen.Generate(info);
258 if (cgen.HasStackOverflow()) { 258 if (cgen.HasStackOverflow()) {
259 ASSERT(!Isolate::Current()->has_pending_exception()); 259 ASSERT(!Isolate::Current()->has_pending_exception());
260 return false; 260 return false;
261 } 261 }
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 int result = save_doubles_ ? 1 : 0; 496 int result = save_doubles_ ? 1 : 0;
497 #ifdef _WIN64 497 #ifdef _WIN64
498 return result | ((result_size_ == 1) ? 0 : 2); 498 return result | ((result_size_ == 1) ? 0 : 2);
499 #else 499 #else
500 return result; 500 return result;
501 #endif 501 #endif
502 } 502 }
503 503
504 504
505 } } // namespace v8::internal 505 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698