OLD | NEW |
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 Loading... |
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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 const char* filename_; | 1450 const char* filename_; |
1446 HeapStringAllocator string_allocator_; | 1451 HeapStringAllocator string_allocator_; |
1447 StringStream trace_; | 1452 StringStream trace_; |
1448 int indent_; | 1453 int indent_; |
1449 }; | 1454 }; |
1450 | 1455 |
1451 | 1456 |
1452 } } // namespace v8::internal | 1457 } } // namespace v8::internal |
1453 | 1458 |
1454 #endif // V8_HYDROGEN_H_ | 1459 #endif // V8_HYDROGEN_H_ |
OLD | NEW |