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

Side by Side Diff: src/compiler.h

Issue 17572011: Split HPhase for Lithium and Hydrogen using common CompilationPhase base. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 7 years, 5 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
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 #ifdef ENABLE_DEBUGGER_SUPPORT 610 #ifdef ENABLE_DEBUGGER_SUPPORT
611 static bool MakeCodeForLiveEdit(CompilationInfo* info); 611 static bool MakeCodeForLiveEdit(CompilationInfo* info);
612 #endif 612 #endif
613 613
614 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, 614 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
615 CompilationInfo* info, 615 CompilationInfo* info,
616 Handle<SharedFunctionInfo> shared); 616 Handle<SharedFunctionInfo> shared);
617 }; 617 };
618 618
619 619
620 class CompilationPhase BASE_EMBEDDED {
621 public:
622 CompilationPhase(const char* name, Isolate* isolate, Zone* zone);
623 ~CompilationPhase();
624
625 protected:
626 bool ShouldProduceTraceOutput() const;
627
628 const char* name() const { return name_; }
629 Isolate* isolate() const { return isolate_; }
630
631 private:
632 const char* name_;
633 Isolate* isolate_;
634 Zone* zone_;
danno 2013/06/24 12:21:22 Why is there no ZoneScope in here? I don't see the
Benedikt Meurer 2013/06/24 13:04:08 Done.
635 unsigned start_allocation_size_;
636 int64_t start_ticks_;
637 };
638
639
620 } } // namespace v8::internal 640 } } // namespace v8::internal
621 641
622 #endif // V8_COMPILER_H_ 642 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698