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

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

Issue 2259883002: [turbofan] Inline calls to CPP builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@builtin-descriptors
Patch Set: Comments and API builtins 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
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 19 matching lines...) Expand all
30 } 30 }
31 31
32 Node* JSGraph::CEntryStubConstant(int result_size) { 32 Node* JSGraph::CEntryStubConstant(int result_size) {
33 if (result_size == 1) { 33 if (result_size == 1) {
34 return CACHED(kCEntryStubConstant, 34 return CACHED(kCEntryStubConstant,
35 HeapConstant(CEntryStub(isolate(), 1).GetCode())); 35 HeapConstant(CEntryStub(isolate(), 1).GetCode()));
36 } 36 }
37 return HeapConstant(CEntryStub(isolate(), result_size).GetCode()); 37 return HeapConstant(CEntryStub(isolate(), result_size).GetCode());
38 } 38 }
39 39
40 Node* JSGraph::CEntryStubConstant(int result_size, SaveFPRegsMode save_doubles,
41 ArgvMode argv_mode, bool builtin_exit_frame) {
Jarin 2016/08/19 09:01:10 The JSGraph class should only have factories that
jgruber 2016/08/19 11:17:07 Removed the newly added CEntryStubConstant and add
42 CEntryStub stub(isolate(), result_size, save_doubles, argv_mode,
43 builtin_exit_frame);
44 return HeapConstant(stub.GetCode());
45 }
40 46
41 Node* JSGraph::EmptyFixedArrayConstant() { 47 Node* JSGraph::EmptyFixedArrayConstant() {
42 return CACHED(kEmptyFixedArrayConstant, 48 return CACHED(kEmptyFixedArrayConstant,
43 HeapConstant(factory()->empty_fixed_array())); 49 HeapConstant(factory()->empty_fixed_array()));
44 } 50 }
45 51
46 Node* JSGraph::EmptyLiteralsArrayConstant() { 52 Node* JSGraph::EmptyLiteralsArrayConstant() {
47 return CACHED(kEmptyLiteralsArrayConstant, 53 return CACHED(kEmptyLiteralsArrayConstant,
48 HeapConstant(factory()->empty_literals_array())); 54 HeapConstant(factory()->empty_literals_array()));
49 } 55 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { 268 for (size_t i = 0; i < arraysize(cached_nodes_); i++) {
263 if (Node* node = cached_nodes_[i]) { 269 if (Node* node = cached_nodes_[i]) {
264 if (!node->IsDead()) nodes->push_back(node); 270 if (!node->IsDead()) nodes->push_back(node);
265 } 271 }
266 } 272 }
267 } 273 }
268 274
269 } // namespace compiler 275 } // namespace compiler
270 } // namespace internal 276 } // namespace internal
271 } // namespace v8 277 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698