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() { | |
70 return CACHED(kEmptyLiteralsArrayConstant, | |
71 HeapConstant(factory()->empty_literals_array())); | |
72 } | |
73 | |
74 Node* JSGraph::EmptyStringConstant() { | 69 Node* JSGraph::EmptyStringConstant() { |
75 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); | 70 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); |
76 } | 71 } |
77 | 72 |
78 Node* JSGraph::FixedArrayMapConstant() { | 73 Node* JSGraph::FixedArrayMapConstant() { |
79 return CACHED(kFixedArrayMapConstant, | 74 return CACHED(kFixedArrayMapConstant, |
80 HeapConstant(factory()->fixed_array_map())); | 75 HeapConstant(factory()->fixed_array_map())); |
81 } | 76 } |
82 | 77 |
83 Node* JSGraph::FixedDoubleArrayMapConstant() { | 78 Node* JSGraph::FixedDoubleArrayMapConstant() { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { | 288 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { |
294 if (Node* node = cached_nodes_[i]) { | 289 if (Node* node = cached_nodes_[i]) { |
295 if (!node->IsDead()) nodes->push_back(node); | 290 if (!node->IsDead()) nodes->push_back(node); |
296 } | 291 } |
297 } | 292 } |
298 } | 293 } |
299 | 294 |
300 } // namespace compiler | 295 } // namespace compiler |
301 } // namespace internal | 296 } // namespace internal |
302 } // namespace v8 | 297 } // namespace v8 |
OLD | NEW |