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

Side by Side Diff: src/ast.h

Issue 1208873002: Reapply "Fix receiver when calling eval() bound by with scope" (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Record source position of "eval" in eval lookup calls 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() + 2; } 1872 static int num_ids() { return parent_num_ids() + 3; }
1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); } 1873 BailoutId ReturnId() const { return BailoutId(local_id(0)); }
1874 BailoutId EvalOrLookupId() const { return BailoutId(local_id(1)); } 1874 BailoutId EvalId() const { return BailoutId(local_id(1)); }
1875 BailoutId LookupId() const { return BailoutId(local_id(2)); }
1875 1876
1876 bool is_uninitialized() const { 1877 bool is_uninitialized() const {
1877 return IsUninitializedField::decode(bit_field_); 1878 return IsUninitializedField::decode(bit_field_);
1878 } 1879 }
1879 void set_is_uninitialized(bool b) { 1880 void set_is_uninitialized(bool b) {
1880 bit_field_ = IsUninitializedField::update(bit_field_, b); 1881 bit_field_ = IsUninitializedField::update(bit_field_, b);
1881 } 1882 }
1882 1883
1883 enum CallType { 1884 enum CallType {
1884 POSSIBLY_EVAL_CALL, 1885 POSSIBLY_EVAL_CALL,
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
3598 3599
3599 private: 3600 private:
3600 Zone* zone_; 3601 Zone* zone_;
3601 AstValueFactory* ast_value_factory_; 3602 AstValueFactory* ast_value_factory_;
3602 }; 3603 };
3603 3604
3604 3605
3605 } } // namespace v8::internal 3606 } } // namespace v8::internal
3606 3607
3607 #endif // V8_AST_H_ 3608 #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