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/ast-graph-builder.h

Issue 1222843004: [turbofan] Unify various bailout hacks for super call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-frame-constants-1
Patch Set: Fix throwing of reference error. Created 5 years, 5 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 #include "src/compiler/liveness-analyzer.h" 10 #include "src/compiler/liveness-analyzer.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // Builder for adding the [[HomeObject]] to a value if the value came from a 334 // Builder for adding the [[HomeObject]] to a value if the value came from a
335 // function literal and needs a home object. Do nothing otherwise. 335 // function literal and needs a home object. Do nothing otherwise.
336 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr, 336 Node* BuildSetHomeObject(Node* value, Node* home_object, Expression* expr,
337 const VectorSlotPair& feedback); 337 const VectorSlotPair& feedback);
338 338
339 // Builders for error reporting at runtime. 339 // Builders for error reporting at runtime.
340 Node* BuildThrowError(Node* exception, BailoutId bailout_id); 340 Node* BuildThrowError(Node* exception, BailoutId bailout_id);
341 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id); 341 Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id);
342 Node* BuildThrowConstAssignError(BailoutId bailout_id); 342 Node* BuildThrowConstAssignError(BailoutId bailout_id);
343 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id); 343 Node* BuildThrowStaticPrototypeError(BailoutId bailout_id);
344 Node* BuildThrowUnsupportedSuperError(BailoutId bailout_id);
344 345
345 // Builders for dynamic hole-checks at runtime. 346 // Builders for dynamic hole-checks at runtime.
346 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole); 347 Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole);
347 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole, 348 Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole,
348 BailoutId bailout_id); 349 BailoutId bailout_id);
349 350
350 // Builders for conditional errors. 351 // Builders for conditional errors.
351 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id); 352 Node* BuildThrowIfStaticPrototype(Node* name, BailoutId bailout_id);
352 353
353 // Builders for non-local control flow. 354 // Builders for non-local control flow.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 553
553 // Prepare environment to be used as loop header. 554 // Prepare environment to be used as loop header.
554 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 555 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
555 }; 556 };
556 557
557 } // namespace compiler 558 } // namespace compiler
558 } // namespace internal 559 } // namespace internal
559 } // namespace v8 560 } // namespace v8
560 561
561 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 562 #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