OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 #include "src/compiler/typer.h" | 8 #include "src/compiler/typer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 CEntryStub stub(isolate(), result_size, save_doubles, argv_mode, | 59 CEntryStub stub(isolate(), result_size, save_doubles, argv_mode, |
60 builtin_exit_frame); | 60 builtin_exit_frame); |
61 return HeapConstant(stub.GetCode()); | 61 return HeapConstant(stub.GetCode()); |
62 } | 62 } |
63 | 63 |
64 Node* JSGraph::EmptyFixedArrayConstant() { | 64 Node* JSGraph::EmptyFixedArrayConstant() { |
65 return CACHED(kEmptyFixedArrayConstant, | 65 return CACHED(kEmptyFixedArrayConstant, |
66 HeapConstant(factory()->empty_fixed_array())); | 66 HeapConstant(factory()->empty_fixed_array())); |
67 } | 67 } |
68 | 68 |
69 Node* JSGraph::EmptyLiteralsArrayConstant() { | 69 Node* JSGraph::EmptyFeedbackVectorConstant() { |
70 return CACHED(kEmptyLiteralsArrayConstant, | 70 return CACHED(kEmptyFeedbackVectorConstant, |
71 HeapConstant(factory()->empty_literals_array())); | 71 HeapConstant(factory()->empty_type_feedback_vector())); |
72 } | 72 } |
73 | 73 |
74 Node* JSGraph::EmptyStringConstant() { | 74 Node* JSGraph::EmptyStringConstant() { |
75 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); | 75 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); |
76 } | 76 } |
77 | 77 |
78 Node* JSGraph::FixedArrayMapConstant() { | 78 Node* JSGraph::FixedArrayMapConstant() { |
79 return CACHED(kFixedArrayMapConstant, | 79 return CACHED(kFixedArrayMapConstant, |
80 HeapConstant(factory()->fixed_array_map())); | 80 HeapConstant(factory()->fixed_array_map())); |
81 } | 81 } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { | 293 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { |
294 if (Node* node = cached_nodes_[i]) { | 294 if (Node* node = cached_nodes_[i]) { |
295 if (!node->IsDead()) nodes->push_back(node); | 295 if (!node->IsDead()) nodes->push_back(node); |
296 } | 296 } |
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 } // namespace compiler | 300 } // namespace compiler |
301 } // namespace internal | 301 } // namespace internal |
302 } // namespace v8 | 302 } // namespace v8 |
OLD | NEW |