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

Side by Side Diff: src/ast.h

Issue 10543141: Enable lazy compilation for non-trivial outer contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ulan Degenbaev. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ast.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 int handler_count() { return handler_count_; } 2058 int handler_count() { return handler_count_; }
2059 bool has_only_simple_this_property_assignments() { 2059 bool has_only_simple_this_property_assignments() {
2060 return HasOnlySimpleThisPropertyAssignments::decode(bitfield_); 2060 return HasOnlySimpleThisPropertyAssignments::decode(bitfield_);
2061 } 2061 }
2062 Handle<FixedArray> this_property_assignments() { 2062 Handle<FixedArray> this_property_assignments() {
2063 return this_property_assignments_; 2063 return this_property_assignments_;
2064 } 2064 }
2065 int parameter_count() { return parameter_count_; } 2065 int parameter_count() { return parameter_count_; }
2066 2066
2067 bool AllowsLazyCompilation(); 2067 bool AllowsLazyCompilation();
2068 bool AllowsLazyCompilationWithoutContext();
2068 2069
2069 Handle<String> debug_name() const { 2070 Handle<String> debug_name() const {
2070 if (name_->length() > 0) return name_; 2071 if (name_->length() > 0) return name_;
2071 return inferred_name(); 2072 return inferred_name();
2072 } 2073 }
2073 2074
2074 Handle<String> inferred_name() const { return inferred_name_; } 2075 Handle<String> inferred_name() const { return inferred_name_; }
2075 void set_inferred_name(Handle<String> inferred_name) { 2076 void set_inferred_name(Handle<String> inferred_name) {
2076 inferred_name_ = inferred_name; 2077 inferred_name_ = inferred_name;
2077 } 2078 }
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 private: 2985 private:
2985 Isolate* isolate_; 2986 Isolate* isolate_;
2986 Zone* zone_; 2987 Zone* zone_;
2987 Visitor visitor_; 2988 Visitor visitor_;
2988 }; 2989 };
2989 2990
2990 2991
2991 } } // namespace v8::internal 2992 } } // namespace v8::internal
2992 2993
2993 #endif // V8_AST_H_ 2994 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698