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

Side by Side Diff: src/hydrogen.h

Issue 10700188: Introduce an OptimizingCompiler class, responsible for maintaining the state needed to run Cranksha… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/type-info.h » ('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 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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 HBasicBlock* CreateJoin(HBasicBlock* first, 864 HBasicBlock* CreateJoin(HBasicBlock* first,
865 HBasicBlock* second, 865 HBasicBlock* second,
866 int join_id); 866 int join_id);
867 867
868 TypeFeedbackOracle* oracle() const { return function_state()->oracle(); } 868 TypeFeedbackOracle* oracle() const { return function_state()->oracle(); }
869 869
870 FunctionState* function_state() const { return function_state_; } 870 FunctionState* function_state() const { return function_state_; }
871 871
872 void VisitDeclarations(ZoneList<Declaration*>* declarations); 872 void VisitDeclarations(ZoneList<Declaration*>* declarations);
873 873
874 void* operator new(size_t size, Zone* zone) {
875 return zone->New(size);
876 }
877 void operator delete(void* ptr) { }
878
874 private: 879 private:
875 // Type of a member function that generates inline code for a native function. 880 // Type of a member function that generates inline code for a native function.
876 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call); 881 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call);
877 882
878 // Forward declarations for inner scope classes. 883 // Forward declarations for inner scope classes.
879 class SubgraphScope; 884 class SubgraphScope;
880 885
881 static const InlineFunctionGenerator kInlineFunctionGenerators[]; 886 static const InlineFunctionGenerator kInlineFunctionGenerators[];
882 887
883 static const int kMaxCallPolymorphism = 4; 888 static const int kMaxCallPolymorphism = 4;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 const char* filename_; 1455 const char* filename_;
1451 HeapStringAllocator string_allocator_; 1456 HeapStringAllocator string_allocator_;
1452 StringStream trace_; 1457 StringStream trace_;
1453 int indent_; 1458 int indent_;
1454 }; 1459 };
1455 1460
1456 1461
1457 } } // namespace v8::internal 1462 } } // namespace v8::internal
1458 1463
1459 #endif // V8_HYDROGEN_H_ 1464 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698