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

Issue 1201273004: Revert of Fix receiver when calling eval() bound by with scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: 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 | « src/arm64/full-codegen-arm64.cc ('k') | 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/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 1862
1863 void SetKnownGlobalTarget(Handle<JSFunction> target) { 1863 void SetKnownGlobalTarget(Handle<JSFunction> target) {
1864 target_ = target; 1864 target_ = target;
1865 set_is_uninitialized(false); 1865 set_is_uninitialized(false);
1866 } 1866 }
1867 void set_target(Handle<JSFunction> target) { target_ = target; } 1867 void set_target(Handle<JSFunction> target) { target_ = target; }
1868 void set_allocation_site(Handle<AllocationSite> site) { 1868 void set_allocation_site(Handle<AllocationSite> site) {
1869 allocation_site_ = site; 1869 allocation_site_ = site;
1870 } 1870 }
1871 1871
1872 static int num_ids() { return parent_num_ids() + 3; } 1872 static int num_ids() { return parent_num_ids() + 2; }
1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } 1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); }
1874 BailoutId EvalId() const { return BailoutId(local_id(1)); } 1874 BailoutId EvalOrLookupId() const { return BailoutId(local_id(1)); }
1875 BailoutId LookupId() const { return BailoutId(local_id(2)); }
1876 1875
1877 bool is_uninitialized() const { 1876 bool is_uninitialized() const {
1878 return IsUninitializedField::decode(bit_field_); 1877 return IsUninitializedField::decode(bit_field_);
1879 } 1878 }
1880 void set_is_uninitialized(bool b) { 1879 void set_is_uninitialized(bool b) {
1881 bit_field_ = IsUninitializedField::update(bit_field_, b); 1880 bit_field_ = IsUninitializedField::update(bit_field_, b);
1882 } 1881 }
1883 1882
1884 enum CallType { 1883 enum CallType {
1885 POSSIBLY_EVAL_CALL, 1884 POSSIBLY_EVAL_CALL,
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3605 3604
3606 private: 3605 private:
3607 Zone* zone_; 3606 Zone* zone_;
3608 AstValueFactory* ast_value_factory_; 3607 AstValueFactory* ast_value_factory_;
3609 }; 3608 };
3610 3609
3611 3610
3612 } } // namespace v8::internal 3611 } } // namespace v8::internal
3613 3612
3614 #endif // V8_AST_H_ 3613 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698