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

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

Issue 2642743002: Revert [TypeFeedbackVector] Root literal arrays in function literal slots (Closed)
Patch Set: Altered test for wasm. Created 3 years, 11 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::EmptyLiteralsArrayConstant() {
70 return CACHED(kEmptyLiteralsArrayConstant,
71 HeapConstant(factory()->empty_literals_array()));
72 }
73
69 Node* JSGraph::EmptyStringConstant() { 74 Node* JSGraph::EmptyStringConstant() {
70 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); 75 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string()));
71 } 76 }
72 77
73 Node* JSGraph::FixedArrayMapConstant() { 78 Node* JSGraph::FixedArrayMapConstant() {
74 return CACHED(kFixedArrayMapConstant, 79 return CACHED(kFixedArrayMapConstant,
75 HeapConstant(factory()->fixed_array_map())); 80 HeapConstant(factory()->fixed_array_map()));
76 } 81 }
77 82
78 Node* JSGraph::FixedDoubleArrayMapConstant() { 83 Node* JSGraph::FixedDoubleArrayMapConstant() {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { 293 for (size_t i = 0; i < arraysize(cached_nodes_); i++) {
289 if (Node* node = cached_nodes_[i]) { 294 if (Node* node = cached_nodes_[i]) {
290 if (!node->IsDead()) nodes->push_back(node); 295 if (!node->IsDead()) nodes->push_back(node);
291 } 296 }
292 } 297 }
293 } 298 }
294 299
295 } // namespace compiler 300 } // namespace compiler
296 } // namespace internal 301 } // namespace internal
297 } // namespace v8 302 } // 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