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

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 926013002: TF: Add support for [[HomeObject]] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | src/compiler/ast-graph-builder.cc » ('J')
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 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 10
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 Node* BuildLoadBuiltinsObject(); 220 Node* BuildLoadBuiltinsObject();
221 Node* BuildLoadGlobalObject(); 221 Node* BuildLoadGlobalObject();
222 Node* BuildLoadGlobalProxy(); 222 Node* BuildLoadGlobalProxy();
223 Node* BuildLoadClosure(); 223 Node* BuildLoadClosure();
224 Node* BuildLoadObjectField(Node* object, int offset); 224 Node* BuildLoadObjectField(Node* object, int offset);
225 225
226 // Builders for automatic type conversion. 226 // Builders for automatic type conversion.
227 Node* BuildToBoolean(Node* value); 227 Node* BuildToBoolean(Node* value);
228 Node* BuildToName(Node* value, BailoutId bailout_id); 228 Node* BuildToName(Node* value, BailoutId bailout_id);
229 229
230 // Adds the [[HomeObject]] to a value if the value came from a function
231 // literal that needs a home object.
232 void AddHomeObjectIfNeeded(Expression* expr, Node* function,
Michael Starzinger 2015/02/16 18:17:50 Single "Add" method not adhering to description in
233 Node* home_object);
234
230 // Builders for error reporting at runtime. 235 // Builders for error reporting at runtime.
231 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); 236 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id);
232 Node* BuildThrowConstAssignError(BailoutId bailout_id); 237 Node* BuildThrowConstAssignError(BailoutId bailout_id);
233 238
234 // Builders for dynamic hole-checks at runtime. 239 // Builders for dynamic hole-checks at runtime.
235 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); 240 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole);
236 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, 241 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole,
237 BailoutId bailout_id); 242 BailoutId bailout_id);
238 243
239 // Builders for non-local control flow. 244 // Builders for non-local control flow.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 455
451 // Prepare environment to be used as loop header. 456 // Prepare environment to be used as loop header.
452 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 457 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
453 }; 458 };
454 459
455 } // namespace compiler 460 } // namespace compiler
456 } // namespace internal 461 } // namespace internal
457 } // namespace v8 462 } // namespace v8
458 463
459 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 464 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | src/compiler/ast-graph-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698