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

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

Issue 2692753004: [turbofan] escape analysis supports arguments object and rest elements (Closed)
Patch Set: addressed 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/graph-assembler.h" 5 #include "src/compiler/graph-assembler.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 49
50 Node* GraphAssembler::ExternalConstant(ExternalReference ref) { 50 Node* GraphAssembler::ExternalConstant(ExternalReference ref) {
51 return jsgraph()->ExternalConstant(ref); 51 return jsgraph()->ExternalConstant(ref);
52 } 52 }
53 53
54 Node* GraphAssembler::CEntryStubConstant(int result_size) { 54 Node* GraphAssembler::CEntryStubConstant(int result_size) {
55 return jsgraph()->CEntryStubConstant(result_size); 55 return jsgraph()->CEntryStubConstant(result_size);
56 } 56 }
57 57
58 Node* GraphAssembler::LoadFramePointer() {
59 return graph()->NewNode(machine()->LoadFramePointer());
60 }
61
58 #define SINGLETON_CONST_DEF(Name) \ 62 #define SINGLETON_CONST_DEF(Name) \
59 Node* GraphAssembler::Name() { return jsgraph()->Name(); } 63 Node* GraphAssembler::Name() { return jsgraph()->Name(); }
60 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF) 64 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF)
61 #undef SINGLETON_CONST_DEF 65 #undef SINGLETON_CONST_DEF
62 66
63 #define PURE_UNOP_DEF(Name) \ 67 #define PURE_UNOP_DEF(Name) \
64 Node* GraphAssembler::Name(Node* input) { \ 68 Node* GraphAssembler::Name(Node* input) { \
65 return graph()->NewNode(machine()->Name(), input); \ 69 return graph()->NewNode(machine()->Name(), input); \
66 } 70 }
67 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF) 71 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF)
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 return representations_[phi_index]; 289 return representations_[phi_index];
286 } 290 }
287 291
288 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } 292 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; }
289 293
290 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } 294 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; }
291 295
292 } // namespace compiler 296 } // namespace compiler
293 } // namespace internal 297 } // namespace internal
294 } // namespace v8 298 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698