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

Side by Side Diff: src/ast.h

Issue 1202963005: Fix receiver when calling eval() bound by with scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Full-codegen impls for all arches Created 5 years, 6 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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
3604 3605
3605 private: 3606 private:
3606 Zone* zone_; 3607 Zone* zone_;
3607 AstValueFactory* ast_value_factory_; 3608 AstValueFactory* ast_value_factory_;
3608 }; 3609 };
3609 3610
3610 3611
3611 } } // namespace v8::internal 3612 } } // namespace v8::internal
3612 3613
3613 #endif // V8_AST_H_ 3614 #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