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

Side by Side Diff: src/ast.h

Issue 181543002: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « src/arm/lithium-codegen-arm.cc ('k') | 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 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 Handle<String> name() const { return name_; } 2308 Handle<String> name() const { return name_; }
2309 Scope* scope() const { return scope_; } 2309 Scope* scope() const { return scope_; }
2310 ZoneList<Statement*>* body() const { return body_; } 2310 ZoneList<Statement*>* body() const { return body_; }
2311 void set_function_token_position(int pos) { function_token_position_ = pos; } 2311 void set_function_token_position(int pos) { function_token_position_ = pos; }
2312 int function_token_position() const { return function_token_position_; } 2312 int function_token_position() const { return function_token_position_; }
2313 int start_position() const; 2313 int start_position() const;
2314 int end_position() const; 2314 int end_position() const;
2315 int SourceSize() const { return end_position() - start_position(); } 2315 int SourceSize() const { return end_position() - start_position(); }
2316 bool is_expression() const { return IsExpression::decode(bitfield_); } 2316 bool is_expression() const { return IsExpression::decode(bitfield_); }
2317 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } 2317 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); }
2318 bool is_sloppy_mode() const { return language_mode() == SLOPPY_MODE; } 2318 StrictMode strict_mode() const;
2319 LanguageMode language_mode() const;
2320 2319
2321 int materialized_literal_count() { return materialized_literal_count_; } 2320 int materialized_literal_count() { return materialized_literal_count_; }
2322 int expected_property_count() { return expected_property_count_; } 2321 int expected_property_count() { return expected_property_count_; }
2323 int handler_count() { return handler_count_; } 2322 int handler_count() { return handler_count_; }
2324 int parameter_count() { return parameter_count_; } 2323 int parameter_count() { return parameter_count_; }
2325 2324
2326 bool AllowsLazyCompilation(); 2325 bool AllowsLazyCompilation();
2327 bool AllowsLazyCompilationWithoutContext(); 2326 bool AllowsLazyCompilationWithoutContext();
2328 2327
2329 void InitializeSharedInfo(Handle<Code> code); 2328 void InitializeSharedInfo(Handle<Code> code);
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 3356
3358 private: 3357 private:
3359 Zone* zone_; 3358 Zone* zone_;
3360 Visitor visitor_; 3359 Visitor visitor_;
3361 }; 3360 };
3362 3361
3363 3362
3364 } } // namespace v8::internal 3363 } } // namespace v8::internal
3365 3364
3366 #endif // V8_AST_H_ 3365 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698