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

Side by Side Diff: src/ast.h

Issue 1425883004: [turbofan] Fix missing bailout point before calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update unittests. Created 5 years, 1 month 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_AST_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/ast-value-factory.h" 9 #include "src/ast-value-factory.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 1889
1890 void SetKnownGlobalTarget(Handle<JSFunction> target) { 1890 void SetKnownGlobalTarget(Handle<JSFunction> target) {
1891 target_ = target; 1891 target_ = target;
1892 set_is_uninitialized(false); 1892 set_is_uninitialized(false);
1893 } 1893 }
1894 void set_target(Handle<JSFunction> target) { target_ = target; } 1894 void set_target(Handle<JSFunction> target) { target_ = target; }
1895 void set_allocation_site(Handle<AllocationSite> site) { 1895 void set_allocation_site(Handle<AllocationSite> site) {
1896 allocation_site_ = site; 1896 allocation_site_ = site;
1897 } 1897 }
1898 1898
1899 static int num_ids() { return parent_num_ids() + 3; } 1899 static int num_ids() { return parent_num_ids() + 4; }
1900 BailoutId ReturnId() const { return BailoutId(local_id(0)); } 1900 BailoutId ReturnId() const { return BailoutId(local_id(0)); }
1901 BailoutId EvalId() const { return BailoutId(local_id(1)); } 1901 BailoutId EvalId() const { return BailoutId(local_id(1)); }
1902 BailoutId LookupId() const { return BailoutId(local_id(2)); } 1902 BailoutId LookupId() const { return BailoutId(local_id(2)); }
1903 BailoutId CallId() const { return BailoutId(local_id(3)); }
1903 1904
1904 bool is_uninitialized() const { 1905 bool is_uninitialized() const {
1905 return IsUninitializedField::decode(bit_field_); 1906 return IsUninitializedField::decode(bit_field_);
1906 } 1907 }
1907 void set_is_uninitialized(bool b) { 1908 void set_is_uninitialized(bool b) {
1908 bit_field_ = IsUninitializedField::update(bit_field_, b); 1909 bit_field_ = IsUninitializedField::update(bit_field_, b);
1909 } 1910 }
1910 1911
1911 enum CallType { 1912 enum CallType {
1912 POSSIBLY_EVAL_CALL, 1913 POSSIBLY_EVAL_CALL,
(...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after
3670 // the parser-level zone. 3671 // the parser-level zone.
3671 Zone* parser_zone_; 3672 Zone* parser_zone_;
3672 AstValueFactory* ast_value_factory_; 3673 AstValueFactory* ast_value_factory_;
3673 }; 3674 };
3674 3675
3675 3676
3676 } // namespace internal 3677 } // namespace internal
3677 } // namespace v8 3678 } // namespace v8
3678 3679
3679 #endif // V8_AST_H_ 3680 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698