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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 CompilationInfoWithZone info_; | 122 CompilationInfoWithZone info_; |
123 CodeStubInterfaceDescriptor* descriptor_; | 123 CodeStubInterfaceDescriptor* descriptor_; |
124 HContext* context_; | 124 HContext* context_; |
125 }; | 125 }; |
126 | 126 |
127 | 127 |
128 bool CodeStubGraphBuilderBase::BuildGraph() { | 128 bool CodeStubGraphBuilderBase::BuildGraph() { |
129 // Update the static counter each time a new code stub is generated. | 129 // Update the static counter each time a new code stub is generated. |
130 isolate()->counters()->code_stubs()->Increment(); | 130 isolate()->counters()->code_stubs()->Increment(); |
131 | 131 |
132 if (FLAG_trace_hydrogen) { | 132 if (FLAG_trace_hydrogen_stubs) { |
133 const char* name = CodeStub::MajorName(stub()->MajorKey(), false); | 133 const char* name = CodeStub::MajorName(stub()->MajorKey(), false); |
134 PrintF("-----------------------------------------------------------\n"); | 134 PrintF("-----------------------------------------------------------\n"); |
135 PrintF("Compiling stub %s using hydrogen\n", name); | 135 PrintF("Compiling stub %s using hydrogen\n", name); |
136 isolate()->GetHTracer()->TraceCompilation(&info_); | 136 isolate()->GetHTracer()->TraceCompilation(&info_); |
137 } | 137 } |
138 | 138 |
139 Zone* zone = this->zone(); | 139 Zone* zone = this->zone(); |
140 int param_count = descriptor_->register_param_count_; | 140 int param_count = descriptor_->register_param_count_; |
141 HEnvironment* start_environment = graph()->start_environment(); | 141 HEnvironment* start_environment = graph()->start_environment(); |
142 HBasicBlock* next_block = CreateBasicBlock(start_environment); | 142 HBasicBlock* next_block = CreateBasicBlock(start_environment); |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 return value; | 952 return value; |
953 } | 953 } |
954 | 954 |
955 | 955 |
956 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() { | 956 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() { |
957 return DoGenerateCode(this); | 957 return DoGenerateCode(this); |
958 } | 958 } |
959 | 959 |
960 | 960 |
961 } } // namespace v8::internal | 961 } } // namespace v8::internal |
OLD | NEW |