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

Side by Side Diff: src/compiler/js-graph.cc

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. Created 3 years, 10 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
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/pipeline.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698