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

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

Issue 2218703003: [turbofan] Add support for copy-on-write element stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix off-by-one loop iteration count. Created 4 years, 4 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 Node* JSGraph::EmptyLiteralsArrayConstant() { 46 Node* JSGraph::EmptyLiteralsArrayConstant() {
47 return CACHED(kEmptyLiteralsArrayConstant, 47 return CACHED(kEmptyLiteralsArrayConstant,
48 HeapConstant(factory()->empty_literals_array())); 48 HeapConstant(factory()->empty_literals_array()));
49 } 49 }
50 50
51 Node* JSGraph::EmptyStringConstant() { 51 Node* JSGraph::EmptyStringConstant() {
52 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string())); 52 return CACHED(kEmptyStringConstant, HeapConstant(factory()->empty_string()));
53 } 53 }
54 54
55 Node* JSGraph::FixedArrayMapConstant() {
56 return CACHED(kFixedArrayMapConstant,
57 HeapConstant(factory()->fixed_array_map()));
58 }
59
55 Node* JSGraph::HeapNumberMapConstant() { 60 Node* JSGraph::HeapNumberMapConstant() {
56 return CACHED(kHeapNumberMapConstant, 61 return CACHED(kHeapNumberMapConstant,
57 HeapConstant(factory()->heap_number_map())); 62 HeapConstant(factory()->heap_number_map()));
58 } 63 }
59 64
60 Node* JSGraph::OptimizedOutConstant() { 65 Node* JSGraph::OptimizedOutConstant() {
61 return CACHED(kOptimizedOutConstant, 66 return CACHED(kOptimizedOutConstant,
62 HeapConstant(factory()->optimized_out())); 67 HeapConstant(factory()->optimized_out()));
63 } 68 }
64 69
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { 257 for (size_t i = 0; i < arraysize(cached_nodes_); i++) {
253 if (Node* node = cached_nodes_[i]) { 258 if (Node* node = cached_nodes_[i]) {
254 if (!node->IsDead()) nodes->push_back(node); 259 if (!node->IsDead()) nodes->push_back(node);
255 } 260 }
256 } 261 }
257 } 262 }
258 263
259 } // namespace compiler 264 } // namespace compiler
260 } // namespace internal 265 } // namespace internal
261 } // namespace v8 266 } // 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