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

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

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. 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/js-native-context-specialization.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::EmptyFeedbackVectorConstant() {
70 return CACHED(kEmptyFeedbackVectorConstant,
71 HeapConstant(factory()->empty_type_feedback_vector()));
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698