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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } 420 }
421 421
422 422
423 void FullCodeGenerator::Initialize() { 423 void FullCodeGenerator::Initialize() {
424 // The generation of debug code must match between the snapshot code and the 424 // The generation of debug code must match between the snapshot code and the
425 // code that is generated later. This is assumed by the debugger when it is 425 // code that is generated later. This is assumed by the debugger when it is
426 // calculating PC offsets after generating a debug version of code. Therefore 426 // calculating PC offsets after generating a debug version of code. Therefore
427 // we disable the production of debug code in the full compiler if we are 427 // we disable the production of debug code in the full compiler if we are
428 // either generating a snapshot or we booted from a snapshot. 428 // either generating a snapshot or we booted from a snapshot.
429 generate_debug_code_ = FLAG_debug_code && 429 generate_debug_code_ = FLAG_debug_code &&
430 !Serializer::enabled() && 430 !Serializer::enabled(isolate()) &&
431 !Snapshot::HaveASnapshotToStartFrom(); 431 !Snapshot::HaveASnapshotToStartFrom();
432 masm_->set_emit_debug_code(generate_debug_code_); 432 masm_->set_emit_debug_code(generate_debug_code_);
433 masm_->set_predictable_code_size(true); 433 masm_->set_predictable_code_size(true);
434 InitializeAstVisitor(info_->zone()); 434 InitializeAstVisitor(info_->zone());
435 } 435 }
436 436
437 437
438 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { 438 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) {
439 PrepareForBailoutForId(node->id(), state); 439 PrepareForBailoutForId(node->id(), state);
440 } 440 }
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 } 1718 }
1719 return true; 1719 return true;
1720 } 1720 }
1721 #endif // DEBUG 1721 #endif // DEBUG
1722 1722
1723 1723
1724 #undef __ 1724 #undef __
1725 1725
1726 1726
1727 } } // namespace v8::internal 1727 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/heap.cc » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698