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

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

Issue 2692753004: [turbofan] escape analysis supports arguments object and rest elements (Closed)
Patch Set: handle the case where Deoptimizer::function_ is a Smi Created 3 years, 9 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/graph-assembler.h ('k') | src/compiler/instruction.h » ('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 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 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 50
51 Node* GraphAssembler::ExternalConstant(ExternalReference ref) { 51 Node* GraphAssembler::ExternalConstant(ExternalReference ref) {
52 return jsgraph()->ExternalConstant(ref); 52 return jsgraph()->ExternalConstant(ref);
53 } 53 }
54 54
55 Node* GraphAssembler::CEntryStubConstant(int result_size) { 55 Node* GraphAssembler::CEntryStubConstant(int result_size) {
56 return jsgraph()->CEntryStubConstant(result_size); 56 return jsgraph()->CEntryStubConstant(result_size);
57 } 57 }
58 58
59 Node* GraphAssembler::LoadFramePointer() {
60 return graph()->NewNode(machine()->LoadFramePointer());
61 }
62
59 #define SINGLETON_CONST_DEF(Name) \ 63 #define SINGLETON_CONST_DEF(Name) \
60 Node* GraphAssembler::Name() { return jsgraph()->Name(); } 64 Node* GraphAssembler::Name() { return jsgraph()->Name(); }
61 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF) 65 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF)
62 #undef SINGLETON_CONST_DEF 66 #undef SINGLETON_CONST_DEF
63 67
64 #define PURE_UNOP_DEF(Name) \ 68 #define PURE_UNOP_DEF(Name) \
65 Node* GraphAssembler::Name(Node* input) { \ 69 Node* GraphAssembler::Name(Node* input) { \
66 return graph()->NewNode(machine()->Name(), input); \ 70 return graph()->NewNode(machine()->Name(), input); \
67 } 71 }
68 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF) 72 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF)
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 return representations_[phi_index]; 290 return representations_[phi_index];
287 } 291 }
288 292
289 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } 293 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; }
290 294
291 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } 295 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; }
292 296
293 } // namespace compiler 297 } // namespace compiler
294 } // namespace internal 298 } // namespace internal
295 } // namespace v8 299 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-assembler.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698